Update r_base.py

This commit is contained in:
Takeus committed 2025-02-12 13:10:27 +01:00
1 parent 4628df54e1
commit bcd6469572
1 file changed
+6 -6
+6 -6
View File
@@ -152,18 +152,18 @@ def allocation_edit_modal(net_id, ipv4):
# Special Allocation # Special Allocation
if int(form.is_special.data) == 1: if int(form.is_special.data) == 1:
# DHCP # DHCP
db_alloc.is_dhcp == True db_alloc.is_dhcp = True
db_alloc.is_gateway == False db_alloc.is_gateway = False
db_alloc.hostname = None db_alloc.hostname = None
db_alloc.description = "DHCP Allocation" db_alloc.description = "DHCP Allocation"
elif int(form.is_special.data) == 2: elif int(form.is_special.data) == 2:
# Gateway # Gateway
db_alloc.is_dhcp == False db_alloc.is_dhcp = False
db_alloc.is_gateway == True db_alloc.is_gateway = True
else: else:
# None # None
db_alloc.is_dhcp == False db_alloc.is_dhcp = False
db_alloc.is_gateway == False db_alloc.is_gateway = False
db.session.commit() db.session.commit()
flash("Allocation Updated", 'success') flash("Allocation Updated", 'success')