mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
replaced ugettext_lazy with gettext_lazy
This commit is contained in:
parent
5172a9f619
commit
1b3fd9d05e
23 changed files with 40 additions and 39 deletions
|
@ -3,7 +3,7 @@ from django.contrib.auth.models import Group, User
|
|||
from django.contrib.auth.forms import ReadOnlyPasswordHashField
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from accounts.models import UserAttributes
|
||||
|
||||
|
@ -78,7 +78,7 @@ class UserForm(forms.ModelForm):
|
|||
label=_("Password"),
|
||||
help_text=format_lazy(_("""Raw passwords are not stored, so there is no way to see
|
||||
this user's password, but you can change the password using <a href='{}'>this form</a>."""),
|
||||
reverse_lazy('admin:user_update_password',
|
||||
reverse_lazy('admin:user_update_password',
|
||||
args=[self.instance.id,]))
|
||||
)
|
||||
self.fields['Password'] = password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue