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
2d460be0
Commit
2d460be0
authored
Feb 27, 2016
by
Daniel W Bond
Browse files
teeny tiny fixes-- a misnamed variable and an import under the wrong comment category
parent
97e195f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/views.py
View file @
2d460be0
...
...
@@ -120,7 +120,7 @@ class DetailStudent(LoginRequiredMixin, DetailView):
current_url
=
self
.
request
.
get_full_path
()
url_uname
=
current_url
.
split
(
'/'
)[
3
]
detailed_student
=
Student
.
objects
.
get
(
user__username
=
url_u
ser
name
)
detailed_student
=
Student
.
objects
.
get
(
user__username
=
url_uname
)
if
(
detailed_student
in
self
.
request
.
user
.
student
.
blocked_kids
.
all
()):
raise
Http404
...
...
roomlist/settings/urls.py
View file @
2d460be0
...
...
@@ -5,9 +5,10 @@ from django.conf.urls import patterns, include, url
from
django.contrib.auth.decorators
import
login_required
from
django.views.generic
import
TemplateView
from
django.contrib
import
admin
# third party imports
from
haystack.views
import
SearchView
# imports from your apps
from
.views
import
HomePageView
from
haystack.views
import
SearchView
admin
.
autodiscover
()
admin
.
site
.
login
=
login_required
(
admin
.
site
.
login
)
...
...
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