Quantcast

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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Xdynix
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Xdynix
Thank you Simon, it's good to hear that.

在 2017年4月20日星期四 UTC+8上午10:03:27,Simon Charette写道:
Hey there,

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

Cheers,
Simon

[0] <a href="https://github.com/django/django/commit/dff559ff83a6aac14de0bbca58101786edf4195f" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdjango%2Fdjango%2Fcommit%2Fdff559ff83a6aac14de0bbca58101786edf4195f\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFfd2vge7AiCLNbYUqx41o9A3gYQA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdjango%2Fdjango%2Fcommit%2Fdff559ff83a6aac14de0bbca58101786edf4195f\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFfd2vge7AiCLNbYUqx41o9A3gYQA&#39;;return true;">https://github.com/django/django/commit/dff559ff83a6aac14de0bbca58101786edf4195f

Le mercredi 19 avril 2017 17:31:47 UTC-4, Xdynix a écrit :
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:

<a href="https://lh3.googleusercontent.com/-6b2Xv9sDDOU/WPe9QvFFs9I/AAAAAAAAAFM/aX12CoOF17ArKAav3fxrI1j45uY5VEDEwCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034030.png" style="margin-left:1em;margin-right:1em" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://lh3.googleusercontent.com/-6b2Xv9sDDOU/WPe9QvFFs9I/AAAAAAAAAFM/aX12CoOF17ArKAav3fxrI1j45uY5VEDEwCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034030.png&#39;;return true;" onclick="this.href=&#39;https://lh3.googleusercontent.com/-6b2Xv9sDDOU/WPe9QvFFs9I/AAAAAAAAAFM/aX12CoOF17ArKAav3fxrI1j45uY5VEDEwCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034030.png&#39;;return true;">

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.

<a href="https://lh3.googleusercontent.com/-giRVrUilJP0/WPe_ueEiB_I/AAAAAAAAAFc/lY5mJyvLYqQ-X_qzEDkTMS9l8bzY19L6QCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034921.png" style="margin-left:1em;margin-right:1em" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://lh3.googleusercontent.com/-giRVrUilJP0/WPe_ueEiB_I/AAAAAAAAAFc/lY5mJyvLYqQ-X_qzEDkTMS9l8bzY19L6QCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034921.png&#39;;return true;" onclick="this.href=&#39;https://lh3.googleusercontent.com/-giRVrUilJP0/WPe_ueEiB_I/AAAAAAAAAFc/lY5mJyvLYqQ-X_qzEDkTMS9l8bzY19L6QCLcB/s1600/TIM%25E6%2588%25AA%25E5%259B%25BE20170420034921.png&#39;;return true;">



--
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 [hidden email].
To post to this group, send email to [hidden email].
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/76be3fe1-fa63-4f41-8bf4-05e866c0c101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...