mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
1 file changed
+1
@@ -161,6 +161,7 @@ def allocation_delete(net_id,ipv4):
|
|||||||
db_alloc.description = None
|
db_alloc.description = None
|
||||||
db_alloc.is_dhcp = False
|
db_alloc.is_dhcp = False
|
||||||
db_alloc.is_gateway = False
|
db_alloc.is_gateway = False
|
||||||
|
db_alloc.is_decom = False
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
flash("Allocation Removed", 'warning')
|
flash("Allocation Removed", 'warning')
|
||||||
return redirect(url_for('network.allocations',net_id=net_id,page=request.args.get('page', type=int)))
|
return redirect(url_for('network.allocations',net_id=net_id,page=request.args.get('page', type=int)))
|
||||||
|
|||||||
Reference in new issue
Block a user