Fixes logic error in detecting changed fields when serializing
This commit is contained in:
parent
b059cbdd18
commit
ebc0680288
2 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,7 @@ class ActivitypubFieldMixin:
|
|||
return False
|
||||
|
||||
# the field is unchanged
|
||||
if getattr(instance, self.name) == formatted:
|
||||
if hasattr(instance, self.name) and getattr(instance, self.name) == formatted:
|
||||
return False
|
||||
|
||||
setattr(instance, self.name, formatted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue