Skip to content

Commit

Permalink
fix activity action url
Browse files Browse the repository at this point in the history
  • Loading branch information
think-in-universe authored and octavioamu committed Feb 20, 2020
1 parent 51b2397 commit c3cb5cd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions app/dashboard/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,7 @@ def get_created_at(self, instance):
return instance.created.isoformat()

def get_url(self, instance):
action = self.get_action(instance)
if action in ('bounty', ):
return instance.bounty.get_absolute_url()

if action in ('kudos', ):
return instance.kudos.kudos_token.get_absolute_url()

if action in ('profile', ):
return instance.profile.absolute_url

return ''
return instance.action_url

def get_action(self, instance):
action = ''
Expand Down

0 comments on commit c3cb5cd

Please sign in to comment.