Skip to content

Commit

Permalink
banning: Make banned list display note.
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-d authored and Roger Ostrander committed May 22, 2013
1 parent 1e1435b commit f86d531
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions r2/r2/lib/pages/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3088,6 +3088,15 @@ class BannedList(UserList):
"""List of users banned from a given reddit"""
type = 'banned'

def __init__(self, *k, **kw):
UserList.__init__(self, *k, **kw)
self.cells += ('note',)

def user_row(self, row_type, user, editable=True):
rel = getattr(c.site, 'get_%s' % self.type)(user)
return UserTableItem(user, row_type, self.cells, self.container_name,
editable, self.remove_action, rel)

@property
def form_title(self):
return _('ban users')
Expand Down

0 comments on commit f86d531

Please sign in to comment.