Created
November 27, 2011 23:30
-
-
Save pydanny/1398440 to your computer and use it in GitHub Desktop.
My awesome CBV form fix
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 CrazyViewWithTwoForms(DetailView): | |
def post(self, request, *args, **kwargs): | |
# mock the GET action in a post request. | |
# Doesn't need to do anything but this. | |
# Is boilerplate but works. | |
# Clearly designed by and for smart people. ;) | |
return self.get(request, *args, **kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment