[Answered ]-Django: display/edit form depending on whether user is authenticated?

2👍

Maybe something like this:

{% if user.is_authenticated %}
   {{form.as_table}}
{% else %}
   {% for field_name, value in form.data.iteritems %}
       {{field_name}}: {{value}}
   {% endfor %}
{% endif %}

Leave a comment