Maybe you can use something like this: http://stackoverflow.com/questions/1346765/unique-constraint-that-allows-empty-values-in-mysql
This would probably mean converting is_master to: is_master = models.BooleanField(null=True, blank=True, unique=True) - and possibly overriding save to convert accidental False-s to None- s. Other solution would be to store somewhere (possibly in separate model with single instance) separate value: which_Thing_is_master Just some quick ideas. -- Tomasz Zielinski http://pyconsultant.eu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---