make sure the I18nField defaultvalue is not passed by reference
This commit is contained in:
parent
6cfd8eb0e3
commit
af93cd2aa2
3 changed files with 3 additions and 9 deletions
|
@ -81,10 +81,6 @@ class Location(LocationSlug, AccessRestrictionMixin, TitledMixin, models.Model):
|
|||
class Meta:
|
||||
abstract = True
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.titles = self.titles.copy()
|
||||
|
||||
def serialize(self, detailed=True, describe_only=False, **kwargs):
|
||||
result = super().serialize(detailed=detailed, **kwargs)
|
||||
if not detailed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue