Remove duplicate code
not sure how that got in there, oh well
This commit is contained in:
parent
e9c9772c58
commit
9ace36c459
|
@ -1449,14 +1449,6 @@ class MasterView(View):
|
|||
if self.row_editable(row):
|
||||
return self.get_row_action_url('edit', row)
|
||||
|
||||
def row_deletable(self, row):
|
||||
"""
|
||||
Returns boolean indicating whether or not the given row can be
|
||||
considered "deletable". Returns ``True`` by default; override as
|
||||
necessary.
|
||||
"""
|
||||
return True
|
||||
|
||||
def row_delete_action_url(self, row, i):
|
||||
if self.row_deletable(row):
|
||||
return self.get_row_action_url('delete', row)
|
||||
|
|
Loading…
Reference in a new issue