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.
authentik/passbook/admin/forms/users.py

22 lines
480 B
Python
Raw Normal View History

"""passbook administrative user forms"""
from django import forms
from passbook.admin.fields import YAMLField
from passbook.core.models import User
class UserForm(forms.ModelForm):
"""Update User Details"""
class Meta:
model = User
fields = ['username', 'name', 'email', 'is_staff', 'is_active', 'attributes']
widgets = {
'name': forms.TextInput,
}
field_classes = {
'attributes': YAMLField,
}