add signup view
This commit is contained in:
parent
fbc6570eb6
commit
633663f95d
7 changed files with 74 additions and 17 deletions
15
apps/member/signals.py
Normal file
15
apps/member/signals.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# -*- mode: python; coding: utf-8 -*-
|
||||
# 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