Commit 263090d6 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

bugfix for app_label issue in api

parent c55f98b5
......@@ -1308,8 +1308,7 @@ def groupeventpermissionToDict(gop, event, request=None):
return rv
def getContentType(event):
model_name = event.__class__.__name__.lower()
return ContentType.objects.get(app_label='gracedb', model=model_name)
return ContentType.objects.get_for_model(event)
class EventPermissionList(APIView):
"""Event Permission List Resource
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment