diff --git a/frontend/templates/campaign_detail.html b/frontend/templates/campaign_detail.html index 4a9da563..6dd742c3 100644 --- a/frontend/templates/campaign_detail.html +++ b/frontend/templates/campaign_detail.html @@ -9,8 +9,11 @@

Status: {{campaign.status}}

ISBN: {{campaign.work.editions.all.0.isbn_10}} | {{campaign.work.editions.all.0.isbn_13}}

Widget Link

+

Embed a widget:

+

PayPal receiver: {{campaign.paypal_receiver}}

Current total (pledged/authorized): {{campaign.current_total}}

+

Base URL: {{base_url}}

{% csrf_token %} {{form.as_p}} diff --git a/frontend/views.py b/frontend/views.py index 15aedc9d..8992cf51 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -376,9 +376,12 @@ class CampaignFormView(FormView): pk = self.kwargs["pk"] campaign = models.Campaign.objects.get(id=int(pk)) context = super(CampaignFormView, self).get_context_data(**kwargs) + base_url = self.request.build_absolute_uri("/")[:-1] context.update({ - 'campaign': campaign + 'campaign': campaign, + 'base_url':base_url }) + return context def form_valid(self,form):