Source

django-informativo / informativo / views.py

Full commit
from django.core.urlresolvers import reverse
from django.views import generic

from informativo import forms
from informativo import models


class SubscribeFormView(generic.edit.CreateView):
    form_class = forms.SubscribeForm
    template_name = 'informativo/subscribe_form.html'
    model = models.Contact

    def get_success_url(self):
        return reverse('informativo-subscribed')


class SubscribedView(generic.base.TemplateView):
    template_name = 'informativo/subscribed.html'