Add start/end time fields to CalendarEvent (#28) (#29)
Unit Tests / test (push) Successful in 3s

## Summary
Closes #28.

- Add optional `start_time` / `end_time` (`TimeField`) on `CalendarEvent`
- Expose times in Django admin list + form
- Replace hardcoded calendar template times with `time_range_display`
- Add migration `0013` and unit coverage for time formatting

## Test plan
- [ ] `python manage.py migrate`
- [ ] `python manage.py test schasite.tests.CalendarEventTests`
- [ ] In admin, edit an event with start/end times and confirm calendar page shows them
- [ ] Confirm events without times hide the Time rowReviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
2026-08-04 11:00:24 -07:00
parent 04c3ac913c
commit f37ff3e87b
6 changed files with 80 additions and 2 deletions
@@ -0,0 +1,23 @@
# Generated by Django 6.0.7 on 2026-08-04 17:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schasite', '0012_alter_payments_date'),
]
operations = [
migrations.AddField(
model_name='calendarevent',
name='end_time',
field=models.TimeField(blank=True, null=True),
),
migrations.AddField(
model_name='calendarevent',
name='start_time',
field=models.TimeField(blank=True, null=True),
),
]