Skip to content

Commit

Permalink
Update user edit link for all users and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Sep 7, 2020
1 parent 0cb4afd commit 64b170b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tally_ho/apps/tally/views/data/user_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UserListDataView(LoginRequiredMixin,

def render_column(self, row, column):
if column == 'edit':
return row.get_edit_tally_link
return row.get_edit_link
else:
return super(UserListDataView, self).render_column(
row, column)
Expand Down Expand Up @@ -69,9 +69,9 @@ def get(self, *args, **kwargs):
is_admin = role == 'admin'

return self.render_to_response(self.get_context_data(
role=role,
is_admin=is_admin,
remote_url=reverse('user-list-data', kwargs={'role': role})))
role=role,
is_admin=is_admin,
remote_url=reverse('user-list-data', kwargs={'role': role})))


class UserTallyListView(LoginRequiredMixin,
Expand Down

0 comments on commit 64b170b

Please sign in to comment.