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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
64e4e9d5
authored
Feb 14, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard/views: fixed node state change to user model.Node
parent
d56aeab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
circle/dashboard/views.py
+2
-4
No files found.
circle/dashboard/views.py
View file @
64e4e9d5
...
@@ -465,11 +465,9 @@ class NodeDetailView(LoginRequiredMixin, SuperuserRequiredMixin, DetailView):
...
@@ -465,11 +465,9 @@ class NodeDetailView(LoginRequiredMixin, SuperuserRequiredMixin, DetailView):
self
.
object
=
self
.
get_object
()
self
.
object
=
self
.
get_object
()
new_status
=
request
.
POST
.
get
(
"new_status"
)
new_status
=
request
.
POST
.
get
(
"new_status"
)
if
new_status
==
"enable"
:
if
new_status
==
"enable"
:
Node
.
objects
.
filter
(
pk
=
self
.
object
.
pk
)
.
update
(
self
.
object
.
enable
(
user
=
request
.
user
)
**
{
'enabled'
:
True
})
elif
new_status
==
"disable"
:
elif
new_status
==
"disable"
:
Node
.
objects
.
filter
(
pk
=
self
.
object
.
pk
)
.
update
(
self
.
object
.
disable
(
user
=
request
.
user
)
**
{
'enabled'
:
False
})
else
:
else
:
return
return
...
...
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