Hi,

I have three models like below:

Shop:
         |
          Products
                        |
                        Variations

Where Shop has a ForeignKey for products and then products has foreign key
for variations. So Shop has no ForeignKey with Variations directly instead
connected via Products model.

1. I am new to Django and I need to understand that in ShopListView view
how to reference variations.

2. Also I need to create a form using FormSetFactory where I can grab data
from all the models in hierarchy. Like my form should have edit options for
Shop's own model fields with Products model fields and Variation Fields.

Would appreciate any help.

Regards,
Ali

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAXvsYmOKPfmP2jgLckRUKuF%2BH7mdhqK0L4g9q4Wi3iUFLLq5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to