Mercurial > public > sg101
diff donations/views.py @ 1079:75189bd9c4ba
Convert donations pages to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 23 Apr 2016 00:01:40 -0500 |
parents | e1c03da72818 |
children | 7fb9bc5a1232 |
line wrap: on
line diff
--- a/donations/views.py Fri Apr 22 22:20:47 2016 -0500 +++ b/donations/views.py Sat Apr 23 00:01:40 2016 -0500 @@ -12,6 +12,7 @@ from django.http import HttpResponse from django.contrib.auth.models import User from django.views.decorators.csrf import csrf_exempt +from django.views.generic import TemplateView from donations.models import Donation @@ -72,9 +73,19 @@ 'item_number': settings.DONATIONS_ITEM_NUM, 'item_anon_number': settings.DONATIONS_ITEM_ANON_NUM, 'domain': current_site.domain, + 'V3_DESIGN': True, }) +class ThanksView(TemplateView): + template_name = 'donations/thanks.html' + + def get_context_data(self, **kwargs): + context = super(ThanksView, self).get_context_data(**kwargs) + context['V3_DESIGN'] = True + return context + + @csrf_exempt def ipn(request): """