Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jonah Kanner
gracedb
Commits
263090d6
Commit
263090d6
authored
Mar 07, 2018
by
Tanner Prestegard
Committed by
GraceDB
Mar 07, 2018
Browse files
bugfix for app_label issue in api
parent
c55f98b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
gracedb/events/api/views.py
View file @
263090d6
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment