Files
mayan-edms/mayan/apps/user_management/forms.py
2019-04-17 02:25:57 -04:00

16 lines
382 B
Python

from __future__ import unicode_literals
from django import forms
from django.contrib.auth import get_user_model
class UserForm(forms.ModelForm):
"""
Form used to edit an user's mininal fields by the user himself
"""
class Meta:
fields = (
'username', 'first_name', 'last_name', 'email', 'is_active',
)
model = get_user_model()