From d0b4cc4681c2f5206eb8e0349ee9d6ce6a6b464b Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 28 Feb 2006 00:23:09 +0000 Subject: [PATCH] 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 --- tests/modeltests/custom_methods/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modeltests/custom_methods/models.py b/tests/modeltests/custom_methods/models.py index 208adc20a3..3fdefca6bf 100644 --- a/tests/modeltests/custom_methods/models.py +++ b/tests/modeltests/custom_methods/models.py @@ -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): """