Commit 5c09c6a4 authored by Ben Waters's avatar Ben Waters
Browse files

more shortcuts

parent 15647393
......@@ -38,7 +38,7 @@ def searchMajorMinor(request):
#API SHIT
@login_required
def profile(request):
current_user = Student.objects.get(user__username=request.user.username)
current_user = get_object_or_404(Student,user__username=request.user.username)
return render_to_response('profile.html', {
"user" : current_user,
......
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