Created
May 31, 2011 22:12
-
-
Save nietaki/1001389 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 MyContestForm(ModelForm): | |
def __init__(self, request, *args, **kwargs): | |
super(MyContestForm, self).__init__(*args, **kwargs) | |
user = request.user | |
boards_available = Board.objects.filter(author=user, contest_only=True) | |
self.fields['boards'].queryset | |
class Meta: | |
model = Contest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment