mirror of
https://github.com/django/django.git
synced 2025-10-16 21:37:33 +00:00
Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable defaults.
This commit is contained in:
parent
5ceaf14686
commit
f6e1789654
8 changed files with 112 additions and 6 deletions
|
@ -41,7 +41,7 @@ class PostgreSQLModel(models.Model):
|
|||
|
||||
|
||||
class IntegerArrayModel(PostgreSQLModel):
|
||||
field = ArrayField(models.IntegerField(), default=[], blank=True)
|
||||
field = ArrayField(models.IntegerField(), default=list, blank=True)
|
||||
|
||||
|
||||
class NullableIntegerArrayModel(PostgreSQLModel):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue