Skip to content
Snippets Groups Projects
Commit eb07a408 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Making superevent creation safer

Applying SafeCreateMixin to the superevent viewset.  This way,
model-level validation errors will be caught and handled
appropriately.
parent 27658306
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -42,7 +42,7 @@ import logging
logger = logging.getLogger(__name__)
class SupereventViewSet(viewsets.ModelViewSet):
class SupereventViewSet(SafeCreateMixin, viewsets.ModelViewSet):
"""
View for listing all Superevents, retrieving individual superevents,
creating new superevents, and updating existing superevents.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment