Commits

Anonymous committed 049efc9

modified template

Comments (0)

Files changed (2)

emailform/views.py

         edit_url = reverse("admin:%s_%s_change" % view_args, args=(obj.id,))
     except NoReverseMatch:
         edit_url = "/admin/%s/%s/%d/" % (view_args + (obj.id,))
-    admin_url = local_settings.CONTACTFORM_ADMIN_SITE
+    admin_url = local_settings.EMAILFORM_ADMIN_SITE
     if not admin_url:
         admin_url = "http://" + request.META["HTTP_HOST"]
     elif len(admin_url) < 4 or admin_url[:4].lower() != "http":

example_app/templates/emailform/emailform_detail.html

 <h3>{{emailform.title}}</h3>
+{% if not entered %}
 <h4>{{emailform.description}}</h4>
+{% endif %}
 {% if entered %}
   {{emailform.thanks_message}}
 {% else %}