Fixes: 1) Add missing import for `AdminPasswordChangeForm`, `UserCreationForm`, and `MarkdownWidget`. Extra: 1) Add `django-unfold-markdown` as a dependency in `uv.lock` and `pyproject.toml`; 2) Remove redundant dropdown configuration from Unfold settings.
13 lines
331 B
Python
13 lines
331 B
Python
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]
|
|
class Meta:
|
|
model = User
|
|
fields = "__all__"
|
|
widgets = {
|
|
"attributes": JSONTableWidget(),
|
|
}
|