24 lines
603 B
Python
24 lines
603 B
Python
from __future__ import annotations
|
|
|
|
from django import forms
|
|
|
|
from .models import Application
|
|
|
|
|
|
class ApplicationForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Application
|
|
fields = [
|
|
"status",
|
|
"applied_at",
|
|
"follow_up_date",
|
|
"contact_name",
|
|
"contact_email",
|
|
"notes",
|
|
]
|
|
widgets = {
|
|
"applied_at": forms.DateTimeInput(attrs={"type": "datetime-local"}),
|
|
"follow_up_date": forms.DateInput(attrs={"type": "date"}),
|
|
"notes": forms.Textarea(attrs={"rows": 6}),
|
|
}
|