Skip to content

Commit

Permalink
Added check to allow form submission with multiple forms within one v…
Browse files Browse the repository at this point in the history
…iew.
  • Loading branch information
philippeowagner committed Nov 10, 2015
1 parent 5e9c8fd commit b8793f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmsplugin_contact_plus/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def render(self, context, instance, placeholder):
if instance and instance.template:
self.render_template = instance.template

if request.method == "POST":
if request.method == "POST" and "contact_plus_form_" + str(instance.id) in request.POST.keys():
form = ContactFormPlus(contactFormInstance=instance,
request=request,
data=request.POST,
Expand Down

0 comments on commit b8793f7

Please sign in to comment.