This commit is contained in:
Mouse Reeve 2021-11-28 08:50:29 -08:00
parent a7ee8fea24
commit 3a7f070a79

View file

@ -296,7 +296,7 @@ class ManyToManyField(ActivitypubFieldMixin, models.ManyToManyField):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
def set_field_from_activity(self, instance, data, overwrite=True): def set_field_from_activity(self, instance, data, overwrite=True):
"""helper function for assinging a value to the field""" """helper function for assigning a value to the field"""
if not overwrite and getattr(instance, self.name).exists(): if not overwrite and getattr(instance, self.name).exists():
return False return False