Tuesday, October 5, 2010

Re: unique constraint

I think your model should have a foreign key to User, and the user field in your model should be set by the time you're doing this validation. That makes more sense and is also a lot easier to do.

Shawn

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment