Fixed custom_methods test which was using __ne lookup that no longer exists.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-02-28 00:23:09 +00:00
parent ae19fb4c61
commit d0b4cc4681
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Article(models.Model):
return self.pub_date == datetime.date.today()
def get_articles_from_same_day_1(self):
return Article.objects.filter(id__ne=self.id, pub_date__exact=self.pub_date)
return Article.objects.filter(pub_date=self.pub_date).exclude(id=self.id)
def get_articles_from_same_day_2(self):
"""