from django import forms


class SubscribeForm(forms.Form):
    email = forms.EmailField()
    tags = forms.CharField()

    def clean(self):
        tags = self.cleaned_data['tags'].split(',')
        self.cleaned_data['tags'] = [t.strip().lower() for t in tags]
        return self.cleaned_data


class UnsubscribeForm(forms.Form):
    email = forms.EmailField()

from django import forms


class SubscribeForm(forms.Form):
    email = forms.EmailField()
    tags = forms.CharField()

    def clean_tags(self):
        tags = self.cleaned_data['tags'].split(',')
        return [t.strip().lower() for t in tags]


class UnsubscribeForm(forms.Form):
    email = forms.EmailField()

Use `clean_tags` instead of `clean`
Use `clean_tags` instead of `clean`
