Created
December 14, 2010 01:07
-
-
Save SmileyChris/739868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SubscriptionForm(forms.ModelForm): | |
""" Base form to be extended by providers which require authentication. """ | |
def save(self, *args, **kwargs): | |
self.instance.credentials = self.serialize() | |
return super(SubscriptionForm, self).save(*args, **kwargs) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment