Monday, September 3, 2012

Is the logic in my model correct? Best-case?

Model: http://dpaste.org/dqwmc/

There can be many products.
There can be many distributors.
A product could have none or more distributors.
A distributor could only distribute a single product once.
A distributor could distribute all products. 

I imagine a form (admin side):

Product Name:
Product Description:
Product Image:

Distributor 1: Radio Field/Boolean
Distributor 2: Radio Field/Boolean
Etc. etc.

For some reason I can't wrap my head around this. 

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/HZpGeOzwSvEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment