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 .models import ChartRequest | |
from django.forms import ModelForm, TextInput | |
class ChartRequestForm(ModelForm): | |
class Meta: | |
model = ChartRequest | |
fields = ["begin_day", "end_day", "json"] | |
widgets = { | |
"begin_day": TextInput(attrs={ |
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 django import forms | |
from django.contrib.auth.forms import AuthenticationForm | |
from django.contrib.auth.models import User | |
from .models import Deal | |
class AuthUserForm(AuthenticationForm, forms.ModelForm): | |
class Meta: | |
model = User |