Skip to content

Commit

Permalink
Update cms_plugins.py
Browse files Browse the repository at this point in the history
make instance-template available to django-cms
  • Loading branch information
JHei committed Apr 4, 2014
1 parent 5ed2ae9 commit 1fa9236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmsplugin_contact_plus/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class CMSContactPlusPlugin(CMSPluginBase):

def render(self, context, instance, placeholder):
request = context['request']

if instance and instance.template:
self.render_template = instance.template

if request.method == "POST":
form = ContactFormPlus(contactFormInstance=instance, data=request.POST)
if form.is_valid():
Expand Down

0 comments on commit 1fa9236

Please sign in to comment.