I have a model that has two fields (Django 1.1.1)

class FooBar(models.Model):
    foo = models.ForeignKey('Foo')
    bar = models.ForeignKey('Bar')

    class Meta:
        unique_together = (('foo','bar'),)

When is_valid is called in my view and the combination of fields
already exists (eg unique_together is false) the error returned is
"Foo bar with this None and None already exists."

"None and None" seems like a bug to me, but I'm not sure.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to