1. Jacob Smullyan
  2. django-emailform

Commits

gmo...@localhost  committed 049efc9

modified template

  • Participants
  • Parent commits 794aa30
  • Branches default

Comments (0)

Files changed (2)

File emailform/views.py

View file
         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":

File example_app/templates/emailform/emailform_detail.html

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