blob: d5ec2926e5fa3b520e4785dcd7db40539a2c9866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from yaksh.models import Profile
def save_profile(backend, user, response, *args, **kwargs):
if not hasattr(user, 'profile'):
profile = Profile.objects.create(user=user)
profile.roll_number = profile.id
else:
profile = Profile.objects.get(user=user)
profile.is_email_verified = True
profile.save()
|