Permalink
Browse files

Redirect all award issuers to badge detail page

  • Loading branch information...
1 parent 6559e52 commit aa33cad0d75b2fd411d97d65228f5b543dd4babd @lmorchard committed Apr 14, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 badger/views.py
View
@@ -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,)))

0 comments on commit aa33cad

Please sign in to comment.