Form processing class MyForm(forms.Form): def __init__(self, *args, **kwargs): self.user = kwargs.pop('user') super(MyForm, self).__init__(*args, **kwargs) def save(self): # self‐contained, user is known
Writing a custom backend is not as simple as subclassing the default views from le_social.registration import views class Register(views.Register): form_class = SMSRegistrationForm def send_notification(self): ... Sane, easily overridable defaults pip install django-le-social
Does it have to be that global? Is it a switch people will want to flip at any time? Could it be… a class attribute/method instead? I know, I'll add a setting