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
from crispy_forms.helper import FormHelper | |
from crispy_forms.layout import Submit, Reset | |
from django import forms | |
from fights.models import FightChoice | |
from users.models import User, UserVote | |
class FightChoiceField(forms.ModelChoiceField): | |
widget = forms.RadioSelect() | |
def __init__(self, *args, **kwargs): |