summaryrefslogtreecommitdiff
path: root/tests/m2m_through_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-07-11 16:37:56 -0400
committerTim Graham <timograham@gmail.com>2018-07-11 16:45:29 -0400
commit4d98b9d729fa7f2525f346fbaf180030c3c3a5f8 (patch)
tree7b080d4a54670991766e44fdc2368354ad64138c /tests/m2m_through_regress
parent8a03445885346b789be246fbb4e62933582cfcc0 (diff)
downloaddjango-4d98b9d729fa7f2525f346fbaf180030c3c3a5f8.tar.gz
Refs #9804 -- Fixed test for sequence reset of M2M with inherited through model.
Diffstat (limited to 'tests/m2m_through_regress')
-rw-r--r--tests/m2m_through_regress/models.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/m2m_through_regress/models.py b/tests/m2m_through_regress/models.py
index 391ddc69c0..0fd7d9c911 100644
--- a/tests/m2m_through_regress/models.py
+++ b/tests/m2m_through_regress/models.py
@@ -40,25 +40,6 @@ class Group(models.Model):
return self.name
-# A set of models that use a non-abstract inherited model as the 'through' model.
-class A(models.Model):
- a_text = models.CharField(max_length=20)
-
-
-class ThroughBase(models.Model):
- a = models.ForeignKey(A, models.CASCADE)
- b = models.ForeignKey('B', models.CASCADE)
-
-
-class Through(ThroughBase):
- extra = models.CharField(max_length=20)
-
-
-class B(models.Model):
- b_text = models.CharField(max_length=20)
- a_list = models.ManyToManyField(A, through=Through)
-
-
# Using to_field on the through model
class Car(models.Model):
make = models.CharField(max_length=20, unique=True, null=True)