diff options
Diffstat (limited to 'tests/admin_scripts/app_with_import/models.py')
-rw-r--r-- | tests/admin_scripts/app_with_import/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/admin_scripts/app_with_import/models.py b/tests/admin_scripts/app_with_import/models.py new file mode 100644 index 0000000000..17a892bd17 --- /dev/null +++ b/tests/admin_scripts/app_with_import/models.py @@ -0,0 +1,8 @@ +from django.db import models +from django.contrib.comments.models import Comment + + +# 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) |