lowercase the key in karma graph URL

This commit is contained in:
Brian S. Stephan 2016-03-31 16:47:17 -05:00
parent e5263d0019
commit c364578e5d
1 changed files with 1 additions and 1 deletions

View File

@ -12,6 +12,6 @@ log = logging.getLogger('karma.views')
def key_detail(request, karma_key):
"""Display the requested karma key."""
entry = get_object_or_404(KarmaKey, key=karma_key)
entry = get_object_or_404(KarmaKey, key=karma_key.lower())
return render(request, 'karma/karma_key.html', {'entry': entry, 'entry_history': entry.history(mode='date')})