Commit 73000026 by Bence Dányi

firewall_gui: fix object fetching

parent 6d9b4e6c
......@@ -435,7 +435,7 @@ def show_vlangroup(request, id=None):
def show_hostgroup(request, id=None):
try:
group = get_object_or_404(Group, id=id)
group = Group.objects.get(id=id)
group = {
'id': group.id,
'name': group.name,
......@@ -479,7 +479,7 @@ def show_hostgroup(request, id=None):
def show_record(request, id=None):
try:
record = get_object_or_404(Record, id=id)
record = Record.objects.get(id=id)
record = {
'id': record.id,
'name': record.name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment