Another fix
This commit is contained in:
parent
94395ae71a
commit
a377f45e0b
1 changed files with 2 additions and 2 deletions
|
@ -544,7 +544,7 @@ def on_user_save(sender, instance, **kwargs):
|
||||||
if instance.id is None:
|
if instance.id is None:
|
||||||
return
|
return
|
||||||
profile = instance.profile
|
profile = instance.profile
|
||||||
profile._get_user.dirty(profile)
|
profile._get_basic_info.dirty(profile)
|
||||||
|
|
||||||
|
|
||||||
@receiver([pre_save], sender=Profile)
|
@receiver([pre_save], sender=Profile)
|
||||||
|
@ -553,4 +553,4 @@ def on_profile_save(sender, instance, **kwargs):
|
||||||
return
|
return
|
||||||
prev = sender.objects.get(id=instance.id)
|
prev = sender.objects.get(id=instance.id)
|
||||||
if prev.mute != instance.mute or prev.profile_image != instance.profile_image:
|
if prev.mute != instance.mute or prev.profile_image != instance.profile_image:
|
||||||
instance._get_user.dirty(instance)
|
instance._get_basic_info.dirty(instance)
|
||||||
|
|
Loading…
Reference in a new issue