Oh! I'm using MYSQL and I just realised that there was an option to set the field unique in there. I hadn't put "unique=True" when I first ran syncdb... so it was not taken into account after I later added it in the model definition.
Thanks! On Apr 2, 5:42 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 02-Apr-08, at 12:03 PM, Julien wrote: > > > get() returned more than one Project -- it returned 2! Lookup > > parameters were {'slug__exact': u'hello'} > > > I have the same issue on the front end using ModelForm. > > > Shouldn't that raise an IntegrityError, and then reload the form page > > with an error like: "This value is already taken, please give another > > one"? > > > I'm using the latest trunk. > > mysql? > > -- > > regards > kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/code/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---