{% extends "base.html" %} {% block title %}Newsletter list - {{ SITE_LONG_NAME }}{% endblock %} {% block content_title %}Newsletter list{% endblock %} {% block media %} {% endblock %} {% block body %} {% if request.user.is_authenticated %}
{% csrf_token %} {{ formset.management_form }} {% for form in formset.forms %} {% endfor %}
Newsletter Subscribe
{{ form.id }} {{ form.instance.newsletter.title }} {{ form.subscribed }}

{% else %} {% for newsletter in object_list %} {% endfor %}
Newsletter
{{ newsletter.title }}
{% endif %} {% endblock %}