mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable defaults.
This commit is contained in:
committed by
Tim Graham
parent
5ceaf14686
commit
f6e1789654
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user