If you are using NewForms, you should implement this in the clean() method for a field. See the newforms docs and unit tests for more details.
On Jul 16, 4:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, fixed the above problem -- figured out that it was related to my > setting unique=True on a field. But that raises the larger question... > > I have a bit of data that may or may not exist... a identifier on the > user that not all users will have, but if they DO have it, it needs to > be unique to that user. Apparently, unique=True isn't what I want, > because the second user without it throws the above duplicate entry > error, so how do I handle that? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---