mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24997 -- Enabled bulk_create() on proxy models
This commit is contained in:
committed by
Tim Graham
parent
fedef7b2c6
commit
9a5cfa05a0
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user