I used django message framework
only in one view
(PasswordChangeView
).
Problem is that when I access to PasswordChangeView
, this page shows all message in message storage such as Login successed, Logout success
etc...
This is my template.html
:
{% for message in messages %}
<p {% if message.tags %} class="alert alert-{{ message.tags }} messages"{% endif %}> {{ message }} </p>
{% endfor %}
I want to make PasswordChangeView
show message only about password
, not login, logout
kinda thing.
How can I do this?