Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

API: Validate endtime is after start time for events. #259

Closed deandrebaker closed 3 years ago

deandrebaker commented 4 years ago

Before an event is created, we need to validate that the end datetime (can be null) is not before the start datetime (CANNOT be null). Check out https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model to see how we can do this validation between the 2 fields on the event modal.