[Answer]-Django Allauth not saving custom form

1๐Ÿ‘

โœ…

Ok, solved by myself afte a while I did this with the form signup def:

def signup(self,request,user):
    user=User.objects.get(email=request.email)
    year = request.POST.get('year', '')
    month = request.POST.get('month', '')
    day = request.POST.get('day', '')
    hour = request.POST.get('hour', '')
    minute = request.POST.get('minute', '')
    sec = request.POST.get('sec', '')
    latdeg = request.POST.get('latdeg', '')
    latmin = request.POST.get('latmin', '')
    londeg = request.POST.get('londeg', '')
    lonmin = request.POST.get('lonmin', '')
    userdata_obj = UserData(user=user,year=year, month=month, day=day, hour=hour,minute=minute, sec=sec,latdeg=latdeg,latmin=latmin,londeg=londeg,lonmin=lonmin)
    userdata_obj.save()
๐Ÿ‘คStefan

Leave a comment