summaryrefslogtreecommitdiff
path: root/tests/djapp
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 12:16:51 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 14:18:49 +0200
commit80eaa0c8711f2c3ca82eb7953db49c7c61bd9ffa (patch)
tree8bdfc502d8a231fdc32a414eee61da628670a727 /tests/djapp
parent69894fce7977ea55f8cc3ad141840bab49330859 (diff)
downloadfactory-boy-80eaa0c8711f2c3ca82eb7953db49c7c61bd9ffa.tar
factory-boy-80eaa0c8711f2c3ca82eb7953db49c7c61bd9ffa.tar.gz
factory.django: Fix counter inheritance with abstract models.
Diffstat (limited to 'tests/djapp')
-rw-r--r--tests/djapp/models.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py
index a65b50a..9b21181 100644
--- a/tests/djapp/models.py
+++ b/tests/djapp/models.py
@@ -55,6 +55,15 @@ class ConcreteSon(AbstractBase):
pass
+class AbstractSon(AbstractBase):
+ class Meta:
+ abstract = True
+
+
+class ConcreteGrandSon(AbstractSon):
+ pass
+
+
class StandardSon(StandardModel):
pass
@@ -77,4 +86,4 @@ else:
class WithSignals(models.Model):
- foo = models.CharField(max_length=20) \ No newline at end of file
+ foo = models.CharField(max_length=20)