diff options
Diffstat (limited to 'tests/djapp/models.py')
-rw-r--r-- | tests/djapp/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py index cc34643..3f25fbb 100644 --- a/tests/djapp/models.py +++ b/tests/djapp/models.py @@ -44,6 +44,17 @@ class NonIntegerPk(models.Model): bar = models.CharField(max_length=20, blank=True) +class AbstractBase(models.Model): + foo = models.CharField(max_length=20) + + class Meta: + abstract = True + + +class ConcreteSon(AbstractBase): + pass + + WITHFILE_UPLOAD_TO = 'django' WITHFILE_UPLOAD_DIR = os.path.join(settings.MEDIA_ROOT, WITHFILE_UPLOAD_TO) |