summaryrefslogtreecommitdiff
path: root/tests/bulk_create/models.py
diff options
context:
space:
mode:
authorWilliam Schwartz <wkschwartz@gmail.com>2015-06-18 10:12:07 -0400
committerTim Graham <timograham@gmail.com>2015-07-02 13:53:51 -0400
commit9a5cfa05a0d889db9daa7872a9697daa883f3609 (patch)
tree49a9eaecdde0c2d36d39803ce3e73672fd1636ea /tests/bulk_create/models.py
parentfedef7b2c6e80e1e58b028cf9c03267a8950bf6f (diff)
Fixed #24997 -- Enabled bulk_create() on proxy models
Diffstat (limited to 'tests/bulk_create/models.py')
-rw-r--r--tests/bulk_create/models.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bulk_create/models.py b/tests/bulk_create/models.py
index fcc4b4177e..22d16e75e5 100644
--- a/tests/bulk_create/models.py
+++ b/tests/bulk_create/models.py
@@ -6,6 +6,25 @@ class Country(models.Model):
iso_two_letter = models.CharField(max_length=2)
+class ProxyCountry(Country):
+ class Meta:
+ proxy = True
+
+
+class ProxyProxyCountry(ProxyCountry):
+ class Meta:
+ proxy = True
+
+
+class ProxyMultiCountry(ProxyCountry):
+ pass
+
+
+class ProxyMultiProxyCountry(ProxyMultiCountry):
+ class Meta:
+ proxy = True
+
+
class Place(models.Model):
name = models.CharField(max_length=100)