Пример #1
0
 def delete(self, id):
     Permission.destroy(id)
     flash('Successfully deleted.', 'success')
     return redirect(url_for('admin.toolbox.access.permission.list'))
Пример #2
0
 def delete(self, id):
     Permission.destroy(id)
     return 'deleted'