Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion djangocms_form_builder/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def clean(self):
raise ValidationError(
_("Please login before submitting this form."), code="unauthorized"
)
return super().clean()

cleaned_data = super().clean()
cleaned_data.pop("captcha_field", None)
return cleaned_data

def save(self):
results = {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% load i18n %}
<h1>{% trans "Form submission" %}</h1>
<p>{% if user %}{% trans "by" %} {{ user.firstname }} {{ user.lastname }} ({{ user.username }}){% else %}{% trans "by anonymous" %}{% endif %}</p>
<h1>{% translate "Form submission" %}</h1>
<p>{% if user %}{% translate "by" %} {{ user.firstname }} {{ user.lastname }} ({{ user.username }}){% else %}{% translate "by anonymous" %}{% endif %}</p>
<table>
<thead>
<tr>
<th>{% trans "Field" %}</th>
<th>{% trans "Value" %}</th>
<th>{% translate "Field" %}</th>
<th>{% translate "Value" %}</th>
</tr>
</thead>
<tbody>
Expand All @@ -16,15 +16,15 @@ <h1>{% trans "Form submission" %}</h1>
</tr>
{% endfor %}
<tr>
<td>{% trans "time" %}</td>
<td>{% translate "time" %}</td>
<td>{% now "H:i d/m/Y" %}</td>
</tr>
<tr>
<td>{% trans "user agent" %}</td>
<td>{% translate "user agent" %}</td>
<td>{{ user_agent }}</td>
</tr>
<tr>
<td>{% trans "referer" %}</td>
<td>{% translate "referer" %}</td>
<td>{{ referer }}</td>
</tr>
</tbody>
Expand Down