Created
December 30, 2014 16:56
-
-
Save dan-gamble/ce7e06a5ed2de0ff27a3 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
def get_context_data(self, **kwargs): | |
context = super(PlayerListView, self).get_context_data() | |
if self.request.GET: | |
context['form'] = PlayerFilterForm(self.request.GET) | |
else: | |
context['form'] = PlayerFilterForm | |
return context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment