1 # -*- coding: utf-8 -*-
2 from django.contrib.auth.forms import UserCreationForm
3 from django.contrib.auth.models import User
5 from newsletter.forms import NewsletterForm
8 # has to be this order, because otherwise the form is lacking fields
9 class RegistrationForm(UserCreationForm, NewsletterForm):
12 fields = ('username', 'email')
14 def save(self, commit=True):
15 super(RegistrationForm, self).save(commit=commit)
16 NewsletterForm.save(self)