Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Hide 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):
...
@@ -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
,
...
...
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