15 lines
454 B
Python
15 lines
454 B
Python
from django.contrib.auth.forms import ReadOnlyPasswordHashField
|
|
from unfold.forms import UserChangeForm
|
|
|
|
from engine.core.widgets import JSONTableWidget
|
|
from engine.vibes_auth.models import User
|
|
|
|
|
|
class UserForm(UserChangeForm): # type: ignore [type-arg]
|
|
password = ReadOnlyPasswordHashField(label="Password")
|
|
class Meta:
|
|
model = User
|
|
fields = "__all__"
|
|
widgets = {
|
|
"attributes": JSONTableWidget(),
|
|
}
|