Hi, I am new to django, and got some problems on models validation. I have the following two models:
class A(models.Model): ... class B(models.Model): key_field = models.ForeignKey(A) ... bool_field = models.BooleanField(default=False) I want to add a validation rule in model B on this way: for a special key_field there cannot be more than one entry with bool_field=True How can I have this? Thanks, Hovo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.