Commit 73000026 by Bence Dányi

firewall_gui: fix object fetching

parent 6d9b4e6c
...@@ -435,7 +435,7 @@ def show_vlangroup(request, id=None): ...@@ -435,7 +435,7 @@ def show_vlangroup(request, id=None):
def show_hostgroup(request, id=None): def show_hostgroup(request, id=None):
try: try:
group = get_object_or_404(Group, id=id) group = Group.objects.get(id=id)
group = { group = {
'id': group.id, 'id': group.id,
'name': group.name, 'name': group.name,
...@@ -479,7 +479,7 @@ def show_hostgroup(request, id=None): ...@@ -479,7 +479,7 @@ def show_hostgroup(request, id=None):
def show_record(request, id=None): def show_record(request, id=None):
try: try:
record = get_object_or_404(Record, id=id) record = Record.objects.get(id=id)
record = { record = {
'id': record.id, 'id': record.id,
'name': record.name, '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