Skip to content

Commit

Permalink
Merge pull request #18 from mbeacom/wild-clones-fix
Browse files Browse the repository at this point in the history
Display the num_clones_in_wild from Gen0 rather than the clone
  • Loading branch information
jasonrhaas committed Sep 21, 2018
2 parents 533e861 + 071e94a commit f2589f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/kudos/views.py
Expand Up @@ -165,6 +165,10 @@ def details(request):
context['card_desc'] = kudos.description
context['avatar_url'] = kudos.image

# The real num_cloned_in_wild is only stored in the Gen0 Kudos token
kudos.num_clones_in_wild = Token.objects.get(pk=kudos.cloned_from_id).num_clones_in_wild
context['kudos'] = kudos

return TemplateResponse(request, 'kudos_details.html', context)


Expand Down

0 comments on commit f2589f3

Please sign in to comment.