From acd7b34aafe352ef604edcb73f75041c5cbba6b9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 29 Jun 2013 18:34:41 +0200 Subject: Advanced deprecation warnings for Django 1.7. --- tests/admin_scripts/app_with_import/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/admin_scripts/app_with_import') 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) -- cgit v1.3