summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-06-29 18:34:41 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-06-29 18:49:37 +0200
commitacd7b34aafe352ef604edcb73f75041c5cbba6b9 (patch)
treeeecb1df66a2070e9a357380fba89febd38c488f4 /tests/admin_scripts
parent8b9b8d3bda09eb1b447631182d06c6c5e51425f6 (diff)
Advanced deprecation warnings for Django 1.7.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/app_with_import/models.py6
-rw-r--r--tests/admin_scripts/tests.py1
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/admin_scripts/app_with_import/models.py b/tests/admin_scripts/app_with_import/models.py
index 17a892bd17..89125c386f 100644
--- a/tests/admin_scripts/app_with_import/models.py
+++ b/tests/admin_scripts/app_with_import/models.py
@@ -1,8 +1,8 @@
from django.db import models
-from django.contrib.comments.models import Comment
+from django.contrib.auth.models import User
# Regression for #13368. This is an example of a model
# that imports a class that has an abstract base class.
-class CommentScore(models.Model):
- comment = models.OneToOneField(Comment, primary_key=True)
+class UserProfile(models.Model):
+ user = models.OneToOneField(User, primary_key=True)
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 2f399acb23..2b772598d3 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1079,7 +1079,6 @@ class ManageValidate(AdminScriptTestCase):
"manage.py validate does not raise errors when an app imports a base class that itself has an abstract base"
self.write_settings('settings.py',
apps=['admin_scripts.app_with_import',
- 'django.contrib.comments',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites'],