fix deletes
This commit is contained in:
parent
9757d3bee0
commit
75b9aec28e
|
@ -19,7 +19,7 @@
|
|||
{% for obj in c.form['classes'] %}
|
||||
{{ obj(class='multiclass') }}
|
||||
{% endfor %}
|
||||
{{ c.form['newclass'](class='multiclass') }}
|
||||
<span class='label'>Add Class:</span> {{ c.form['newclass'](class='multiclass') }}
|
||||
|
||||
|
||||
<div id='controls'>
|
||||
|
|
|
@ -124,7 +124,6 @@ class BaseController:
|
|||
return
|
||||
with db.transaction():
|
||||
db.query(self.model).filter_by(id=self.record.id).delete()
|
||||
logging.debug(f"Deleted {self.record = }")
|
||||
location = self.request.current_route_path()
|
||||
return HTTPFound(location=location)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user