This commit is contained in:
Vivek P Prakash
2025-11-27 11:53:46 +05:30
commit aa40080012
50 changed files with 1135 additions and 0 deletions

11
events/forms.py Normal file
View File

@@ -0,0 +1,11 @@
from django import forms
from .models import Event
class EventForm(forms.ModelForm):
class Meta:
model = Event
exclude = ['created_date']
widgets = {
'start_date': forms.DateInput(attrs={'type':'date'}),
'end_date': forms.DateInput(attrs={'type':'date'}),
}