mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Advanced deprecation warnings for Django 1.7.
This commit is contained in:
parent
8b9b8d3bda
commit
acd7b34aaf
41 changed files with 80 additions and 81 deletions
|
@ -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)
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue