Commit 2d460be0 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

teeny tiny fixes-- a misnamed variable and an import under the wrong comment category

parent 97e195f2
......@@ -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_username)
detailed_student = Student.objects.get(user__username=url_uname)
if (detailed_student in self.request.user.student.blocked_kids.all()):
raise Http404
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment