Hi there, I have a slug field which I'd like to be unique, so I do like this:
class Project(models.Model): slug = models.SlugField(_('bla'), max_length=50, blank=True, unique=True, help_text=_('blabla')) In admin, if I saved a project with the slug 'hello', and then saved another one with the same slug, I would get the IntegrityError but the following: 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. Thanks! Julien --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---