Kaydet (Commit) 214c7921 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #10589 -- Removed duplicated model definition in null_fk_ordering…

Fixed #10589 -- Removed duplicated model definition in null_fk_ordering regression test. Thanks to Julien Phalip for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst cc2d0c30
......@@ -48,15 +48,6 @@ class Comment(models.Model):
def __unicode__(self):
return self.comment_text
class Comment(models.Model):
post = models.ForeignKey(Post, null=True)
comment_text = models.CharField(max_length=250)
class Meta:
ordering = ['post__forum__system_info__system_name', 'comment_text']
def __unicode__(self):
return self.comment_text
__test__ = {'API_TESTS': """
# Regression test for #7512 -- ordering across nullable Foreign Keys shouldn't
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment