This commit is contained in:
Holger Trampe 2020-05-20 00:11:47 +02:00
parent 8d8946a66b
commit f4f9f197ce
2 changed files with 1 additions and 6 deletions

View File

@ -135,12 +135,7 @@ def create_profile(sender, instance, created, **kwargs):
@receiver(post_save, sender=User)
def save_profile(sender, instance, **kwargs):
instance.profile.save()
user_to_touch = list(Presence.objects.filter(user=instance.pk))[0]
user_to_touch
Presence.objects.touch(user_to_touch)
# SIGNALS FOR GROUPS
@receiver(signal=m2m_changed, sender=User.groups.through)
def adjust_group_notifications(instance, action, reverse, model, pk_set, using, *args, **kwargs):