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