This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-02 21:41:14 +00:00
|
|
|
"""passbook administrative user forms"""
|
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from passbook.core.models import User
|
|
|
|
|
|
|
|
|
|
|
|
class UserForm(forms.ModelForm):
|
|
|
|
"""Update User Details"""
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
|
|
|
model = User
|
2019-10-11 10:47:06 +00:00
|
|
|
fields = ['username', 'name', 'email', 'is_staff', 'is_active', 'attributes']
|
2019-03-02 21:41:14 +00:00
|
|
|
widgets = {
|
|
|
|
'name': forms.TextInput
|
|
|
|
}
|