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

Bugfixes to event log entry tag view code

parent edb55f51
No related branches found
No related tags found
No related merge requests found
......@@ -491,7 +491,7 @@ def taglogentry(request, event, num, tagname):
# Check if tag already exists in the database. If not, create it.
db_tags = Tag.objects.filter(name=tagname)
if not db_tags:
displayName = request.POST['displayName']
displayName = request.POST.get('displayName', None)
tag = Tag(name=tagname, displayName=displayName)
tag.save()
else:
......@@ -529,7 +529,7 @@ def taglogentry(request, event, num, tagname):
return HttpResponseBadRequest(msg)
# Create a log entry to document the tag deletion.
msg = "Removed tag %s for message %s. " % (tagname, num)
msg = "Removed tag %s for message %s." % (tagname, num)
logentry = EventLog(event=event,
issuer=request.user,
comment=msg)
......
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