Add fields to Django ModelForm that aren't in the model
- by Cyclic
I have a model that looks like:
class MySchedule(models.Model):
start_datetime=models.DateTimeField()
name=models.CharField('Name',max_length=75)
With it comes its ModelForm:
class MyScheduleForm(forms.ModelForm):
startdate=forms.DateField()
…