Django ORM Course | Choice Field Option

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 22

  • @1412-kaito
    @1412-kaito Рік тому

    This is so simple! ❤
    I spent like an hour on stackoverflow and documentation, trying to figure out what I can actually do. Lol

  • @kaushik.aryan04
    @kaushik.aryan04 2 роки тому

    Quality of videos is great Loved it

  • @acrodile2408
    @acrodile2408 2 роки тому

    Just loved it!! thank you for such an amazing explanation

  • @akshaykolte88
    @akshaykolte88 Рік тому

    thanks

  • @MartinoxxHD
    @MartinoxxHD 2 роки тому +1

    Hello! Is there a way to inner join two models without foreign key?

    • @veryacademy
      @veryacademy  2 роки тому +1

      stackoverflow.com/questions/5771190/why-is-a-primary-foreign-key-relation-required-when-we-can-join-without-it

    • @MartinoxxHD
      @MartinoxxHD 2 роки тому

      @@veryacademy Thanks, but I was referring on how to join two models without foreign key using Django ORM. Like creating a query and mapping each related object from the other model

    • @veryacademy
      @veryacademy  2 роки тому +1

      @@MartinoxxHD I would stick with a raw SQL query for this. Maybe this will help stackoverflow.com/questions/19590483/django-queryset-join-without-foreignkey

    • @veryacademy
      @veryacademy  2 роки тому +1

      If not take a look at
      docs.djangoproject.com/en/4.0/ref/models/expressions/#subquery-expressions
      and
      docs.djangoproject.com/en/4.0/ref/models/expressions/#referencing-columns-from-the-outer-queryset

    • @veryacademy
      @veryacademy  2 роки тому +1

      if not if not
      stackoverflow.com/questions/39291372/django-orm-join-without-foreign-keys-and-without-raw-queries

  • @Coden69
    @Coden69 2 роки тому +1

    please tell are you alright and when will you come back?

    • @veryacademy
      @veryacademy  2 роки тому +2

      Thank you. I am not going away that is for sure. I started recording last week again, just getting back into the flow of things. I will as I normally do get a few different videos out to get some practice in again and sharpen the workflow then get back on course. I am working towards 3 courses, DRF, ORM and level 2 and Django Core.

    • @Coden69
      @Coden69 2 роки тому

      @@veryacademy thanks waiting

  • @DistantTower
    @DistantTower 2 роки тому

    Great tutorial, thanks.

  • @jacksonpatrick3454
    @jacksonpatrick3454 Рік тому +1

    Hey how to render these choice list on frontend? List of choices

    • @veryacademy
      @veryacademy  Рік тому

      Using Django templates, if you create a form automatically it will default to showing you a dropdown selection.

    • @jacksonpatrick3454
      @jacksonpatrick3454 Рік тому

      @@veryacademy what about in django rest framework?

  • @Nova-Rift
    @Nova-Rift 2 роки тому

    Thanks!

  • @ibrahimoglu
    @ibrahimoglu 2 роки тому

    👍