fix sign up forms
This commit is contained in:
parent
633663f95d
commit
4a52272558
5 changed files with 21 additions and 20 deletions
|
|
@ -4,12 +4,3 @@
|
|||
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
|
||||
def save_user_profile(instance, created, **_kwargs):
|
||||
"""
|
||||
Hook to create and save a note when an user is updated
|
||||
"""
|
||||
if created:
|
||||
from .models import Profile
|
||||
Profile.objects.create(user=instance)
|
||||
instance.note.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue