Skip to content

Commit

Permalink
Redirect all award issuers to badge detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorchard committed Apr 14, 2012
1 parent 6559e52 commit aa33cad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions badger/views.py
Expand Up @@ -113,12 +113,11 @@ def award_badge(request, slug):
if not hasattr(result, 'claim_code'):
messages.info(request, _('Award issued to %s') % email)
return HttpResponseRedirect(
reverse('badger.views.award_detail',
args=(badge.slug, result.id,)))
reverse('badger.views.detail',
args=(badge.slug,)))
else:
messages.info(request, _('%s is not a known user, '
'invitation to claim award '
'sent') % email)
messages.info(request, _('Invitation to claim award '
'sent to %s') % email)
return HttpResponseRedirect(
reverse('badger.views.detail',
args=(badge.slug,)))
Expand Down

0 comments on commit aa33cad

Please sign in to comment.