diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-25 10:58:12 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-25 10:58:12 +0200 |
commit | 2e5046bda818771f474a1514465f71bd62be9dcd (patch) | |
tree | ade9d0c6f02fbc4dfbe066b41c6765c215a68f81 /tests/djapp | |
parent | ea00fa30273c7355c02a361c1193ea4764528edb (diff) | |
download | factory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar factory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar.gz |
Fix Django sequences with abstract base models.
Diffstat (limited to 'tests/djapp')
-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) |