Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
42647e17
Commit
42647e17
authored
Nov 04, 2015
by
Daniel W Bond
Browse files
accidentally reset while trying to demo something to @sherorox
parent
05608090
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/views.py
View file @
42647e17
...
...
@@ -388,6 +388,13 @@ class WelcomePrivacy(LoginRequiredMixin, UpdateView):
def
get_success_url
(
self
):
print
(
'in get_success_url method'
)
print
(
self
.
request
.
user
.
student
.
times_changed_room
)
print
(
self
.
request
.
user
.
student
.
completedPrivacy
)
me
=
Student
.
objects
.
get
(
user
=
self
.
request
.
user
)
me
.
completedPrivacy
=
True
me
.
times_changed_room
+=
1
me
.
save
()
print
(
self
.
request
.
user
.
student
.
times_changed_room
)
print
(
self
.
request
.
user
.
student
.
completedPrivacy
)
return
reverse
(
'welcomeMajor'
,
...
...
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