Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
73000026
authored
May 28, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: fix object fetching
parent
6d9b4e6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
firewall_gui/views.py
+2
-2
No files found.
firewall_gui/views.py
View file @
73000026
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment