You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
664 B

# -*- coding: utf-8 -*-
from django.views.generic import TemplateView, CreateView, ListView, UpdateView, DetailView
from django.conf import settings
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from emencia.django.newsletter.models import Contact, ContactSettings
class ContactList(ListView):
paginate_by = settings.ADMIN_PAGINATION
model = Contact
template_name = 'admin/newsletters/contact_list.html'
class UpdateContact(UpdateView):
model = Contact
template_name = 'admin/newsletters/contact.html'
def get_success_url(self):
return ('subscription_activation_complete', (), {})