Fixed #12105: Corrected handling of isnull=False lookups in admin. Thanks marcob, Travis Cline, gabrielhurley.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2010-03-16 19:01:40 +00:00
parent cc6e9b2286
commit 883329ecb3
3 changed files with 18 additions and 1 deletions

View file

@ -27,7 +27,7 @@ class Article(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
date = models.DateTimeField()
section = models.ForeignKey(Section)
section = models.ForeignKey(Section, null=True, blank=True)
def __unicode__(self):
return self.title