PageRenderTime 142ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 100ms app.codeStats 0ms

/tests/regressiontests/admin_scripts/app_with_import/models.py

https://code.google.com/p/mango-py/
Python | 7 lines | 4 code | 1 blank | 2 comment | 0 complexity | c60737b1e916c6cdce88da913c615b1d MD5 | raw file
1from django.contrib.comments.models import Comment
2from django.db import models
3
4# Regression for #13368. This is an example of a model
5# that imports a class that has an abstract base class.
6class CommentScore(models.Model):
7    comment = models.OneToOneField(Comment, primary_key=True)