fix deletes

This commit is contained in:
evilchili 2024-02-23 11:02:36 -08:00
parent 9757d3bee0
commit 75b9aec28e
2 changed files with 1 additions and 2 deletions

View File

@ -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'>

View File

@ -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)