diff --git a/tests/modeltests/validation/models.py b/tests/modeltests/validation/models.py index 49bf4a154d..b2b3ffcd7c 100644 --- a/tests/modeltests/validation/models.py +++ b/tests/modeltests/validation/models.py @@ -81,7 +81,6 @@ class FlexibleDatePost(models.Model): class UniqueErrorsModel(models.Model): name = models.CharField(max_length=100, unique=True, error_messages={'unique': u'Custom unique name message.'}) - #number = models.IntegerField(unique=True, error_messages={'unique': u'Custom unique number message.'}) no = models.IntegerField(unique=True, error_messages={'unique': u'Custom unique number message.'}) class GenericIPAddressTestModel(models.Model): diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index 8d79f44bb1..ce669a4005 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -791,7 +791,6 @@ class CoverLetterAdmin(admin.ModelAdmin): """ def queryset(self, request): - #return super(CoverLetterAdmin, self).queryset(request).only('author') return super(CoverLetterAdmin, self).queryset(request).defer('date_written') class Story(models.Model):