There seems an issue in Django(1.11)'s password displaying form in admin site.

40 views
Skip to first unread message

Xdynix

unread,
Apr 19, 2017, 5:31:47 PM4/19/17
to Django users
Hello everyone.

I'm new to django community and I'm not sure what should I do to what I found. So I decide to post it here.

I would be very appreciated if someone could tell me whether it is still an issue or it has been fixed. And what should I do next.

After I update my django from 1.10 to 1.11, I found the password displaying in admin site became like this:

The entries of encrypt information get into a mess!

So I look into django's package and found \django\contrib\auth\templates\auth\widgets\read_only_password_hash.html

The code in it is:

{% for entry in summary %}
<div{% include 'django/forms/widgets/attrs.html' %}><strong>{{ entry.label }}</strong>{% if entry.value %}: {{ entry.value }}{% endif %}
{% endfor %}

Refer to the old looking, I edit the code into:

<div{% include 'django/forms/widgets/attrs.html' %}>
{% for entry in summary %}<strong>{{ entry.label }}</strong>{% if entry.value %}: {{ entry.value }}{% endif %} {% endfor %}
</div>

It worked! The password displaying in admin site looks just like old version.



Simon Charette

unread,
Apr 19, 2017, 10:03:27 PM4/19/17
to Django users
Hey there,

It looks like it has been fixed already[0] and will be part of the upcoming 1.11.1 release.

Cheers,
Simon

Xdynix

unread,
Apr 20, 2017, 1:52:04 AM4/20/17
to Django users
Thank you Simon, it's good to hear that.

在 2017年4月20日星期四 UTC+8上午10:03:27,Simon Charette写道:
Reply all
Reply to author
Forward
0 new messages