2018-12-10 15:58:35 +00:00
|
|
|
"""passbook core user forms"""
|
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from passbook.core.models import User
|
|
|
|
|
|
|
|
|
|
|
|
class UserDetailForm(forms.ModelForm):
|
|
|
|
"""Update User Details"""
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
|
|
|
model = User
|
2019-12-31 11:51:16 +00:00
|
|
|
fields = ["username", "name", "email"]
|
|
|
|
widgets = {"name": forms.TextInput}
|