I have a form tied to a List model where User and Name are
unique_together.

What's the best way to trap the IntegrityError if someone tries to
create a new List with a User/Name combo that already exists?

I know I could allow Django forms to do it if I include User in the
form, but obviously I need User to be hidden and defaulted to the
current user.

TIA.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to