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

Bugfix for superevent log creation in browser

Now using get_superevent_by_date_id_or_404 to retrieve the superevent
for log creation via the web interface.
parent c52f8243
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -87,8 +87,8 @@ def web_create_log(request, superevent_id):
log_dict['issuer'] = request.user.id
# Get superevent id from superevent_id
# TODO: TEMPORARY until superevent_id is well defined
superevent = Superevent.objects.get(id=int(superevent_id[1:]))
# Get superevent object
superevent = get_superevent_by_date_id_or_404(request, superevent_id)
log_dict['superevent'] = superevent.id
# TODO:
......
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