settings
+ change data (username, name, email)
This commit is contained in:
parent
05ee124c6d
commit
ed52d5c8c4
13 changed files with 130 additions and 4 deletions
13
invsystem/settings_app/forms.py
Normal file
13
invsystem/settings_app/forms.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from django.forms import CharField,Form
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
class SettingsForm(Form):
|
||||
username = CharField(required=False)
|
||||
last_name = CharField(required=True)
|
||||
first_name = CharField(required=True)
|
||||
email = CharField(required=True)
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ('username', 'first_name', 'last_name', 'email')
|
||||
Loading…
Add table
Add a link
Reference in a new issue