IMGIITRoorkee / omniport-backend-formula-one

The backend blocks of Omniport, expressed as a collection of frequently-used classes and functions
GNU General Public License v3.0
9 stars 2 forks source link

Handle `ValueError` when end_date is populated via admin panel #11

Closed algomaster99 closed 4 years ago

algomaster99 commented 4 years ago

Django assumes the key of the error_dict is a field name. Since "Invalid period" isn't a field, a Value Error was being raised.