mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
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:
parent
cc6e9b2286
commit
883329ecb3
3 changed files with 18 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue