csrf
This commit is contained in:
parent
8d8946a66b
commit
f4f9f197ce
Binary file not shown.
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue