On 02/13/2012 03:25 PM, Nicolas Bazire wrote:
On Feb 13, 9:16 pm, Shawn Milochik<sh...@milochik.com> wrote:
You can override and customize the forms, then manually add the unique
indexes to your database.
Overriding the forms is only part of the problem.
For instance, forms are not used with Model.objects.create().
I want to enforce such constraints and not just at the form level.
Yep. Notice my response that you quoted. Manually add the unique index
to your database in addition to overriding the forms.
--
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.