Created
June 27, 2011 14:05
-
-
Save ojii/1048915 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 AwesomeAdmin(ModelAdmin): | |
def get_form(self, request, obj=None, **kwargs): | |
form_class = super(AwesomeAdmin, self).get_form(request, obj, **kwargs) | |
form_class.request = request | |
return form_class | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment