Hi Guys

I am running into the problem that uniqueness is not enforced at the ORM 
layer. From:
http://www.djangoproject.com/documentation/model-api/#unique

"This is enforced at the database level and at the Django admin-form level."

This means that when using the Django REST API trying to insert a duplicate 
value into a unique field throws a "duplicate key violates unique 
constraint" error in from the database after django tries to do the INSERT.

Can we move these checks further down the ORM layer, or should the same 
checks that are in the admin-form be duplicated in the REST API?

Cheers
-- 

Peter Nixon
http://peternixon.net/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to