Request company in signup process
This commit is contained in:
parent
0df2b0e0eb
commit
98e114dc79
1 changed files with 11 additions and 0 deletions
11
src/servala/frontend/forms/auth.py
Normal file
11
src/servala/frontend/forms/auth.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
from django.forms import Form
|
||||||
|
|
||||||
|
from servala.core.models.user import User
|
||||||
|
|
||||||
|
|
||||||
|
class ServalaSignupForm(Form):
|
||||||
|
company = User._meta.get_field("company").formfield()
|
||||||
|
|
||||||
|
def signup(self, request, user):
|
||||||
|
user.company = self.cleaned_data.get("company")
|
||||||
|
user.save()
|
Loading…
Add table
Add a link
Reference in a new issue