mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #24997 -- Enabled bulk_create() on proxy models
This commit is contained in:
parent
fedef7b2c6
commit
9a5cfa05a0
6 changed files with 68 additions and 18 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue