On 5/12/2009 10:47 AM, Phil Mocek wrote: > It seems risky to try to handle at the > application level these things that a DBMS is specifically > designed to do.
Well, exactly. If the correct constraints are put in place, then your DB/adaptor would raise the proper error. So if a row is supposed to be "unique", by whatever criteria, and that criteria is enforced through the DB via proper model definition, the second insert would fail properly. -- George --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---