Features: 1) Add password field using ReadOnlyPasswordHashField in UserForm; 2) Enable unfold_markdown in base settings;
Fixes: None; Extra: None;
This commit is contained in:
parent
c6e60d1f3e
commit
2507eecc55
2 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from django.contrib.auth.forms import ReadOnlyPasswordHashField
|
||||
from unfold.forms import UserChangeForm
|
||||
|
||||
from engine.core.widgets import JSONTableWidget
|
||||
|
|
@ -5,6 +6,7 @@ from engine.vibes_auth.models import User
|
|||
|
||||
|
||||
class UserForm(UserChangeForm): # type: ignore [type-arg]
|
||||
password = ReadOnlyPasswordHashField(label="Password")
|
||||
class Meta:
|
||||
model = User
|
||||
fields = "__all__"
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ INSTALLED_APPS: list[str] = [
|
|||
"unfold.contrib.filters",
|
||||
"unfold.contrib.forms",
|
||||
"unfold.contrib.inlines",
|
||||
"unfold_markdown",
|
||||
"unfold.contrib.constance",
|
||||
"unfold.contrib.import_export",
|
||||
"constance",
|
||||
|
|
|
|||
Loading…
Reference in a new issue