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
1ec1ae39
authored
Jun 26, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
school: don't create Person if it doesn't exist on removal from group
parent
687a5107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
school/views.py
+1
-1
No files found.
school/views.py
View file @
1ec1ae39
...
@@ -227,7 +227,7 @@ def group_ajax_remove_member(request, gid):
...
@@ -227,7 +227,7 @@ def group_ajax_remove_member(request, gid):
status
=
json
.
dumps
({
'status'
:
'Error'
})
status
=
json
.
dumps
({
'status'
:
'Error'
})
messages
.
error
(
request
,
_
(
'Invalid NEPTUN code'
))
messages
.
error
(
request
,
_
(
'Invalid NEPTUN code'
))
return
HttpResponse
(
status
)
return
HttpResponse
(
status
)
person
,
created
=
Person
.
objects
.
get_or_create
(
code
=
member
)
person
=
Person
.
objects
.
get
(
code
=
member
)
group
.
members
.
remove
(
person
)
group
.
members
.
remove
(
person
)
group
.
save
()
group
.
save
()
return
HttpResponse
(
json
.
dumps
({
return
HttpResponse
(
json
.
dumps
({
...
...
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