On Wed, 2011-04-06 at 15:13 -0700, Tony wrote: > so I have two models, A and B. B has a foreignkey relationship in it > from A (To be clear because I know I dont explain it that well, one A > has many Bs). for each group of Bs each A is connected with, I want > there to be a way to mark one of the Bs as unique from the rest of > them.
Without knowing anything about your application, it sounds like your data model really should have two different relationships. There's a 1:1 relationship selecting the "unique" B for a given A, and then there's an additional 1:N relationship, selecting the "non-unique" B's for a given A. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.