Wednesday, April 19, 2017

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

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.



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ba0c395a-9b74-4468-af83-4bd7e7939d3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment