I apologize ahead of time, if this bug is rather a user error.

If you have a model:

class Foo(Model):
    spam= CharField(max_length=30)
    xyz= CharField(max_length=30)

    def __unicode__(self):
        return self.xyz

and you use it in the shell like this:

>>> Foo.objects.create(xyz="Hello")
<Foo: Hello>
>>>

No IntegrityError was raised, even though ``spam`` is a required field.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to