1
0
mirror of https://github.com/django/django.git synced 2025-10-27 23:56:08 +00:00

magic-removal: Changed syntax in unit tests -- hopefully for the last time.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-01-31 01:08:02 +00:00
parent a6cf387d6b
commit 9fa5c43d5b
18 changed files with 120 additions and 124 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.get_list(id__ne=self.id, pub_date__exact=self.pub_date)
return Article.objects.filter(id__ne=self.id, pub_date__exact=self.pub_date)
def get_articles_from_same_day_2(self):
"""