Commit 0be86d4d authored by Ben Waters's avatar Ben Waters
Browse files

theres a bug and i can't find it look at navbar

parent 8e6a9e49
...@@ -40,7 +40,6 @@ def searchMajorMinor(request): ...@@ -40,7 +40,6 @@ def searchMajorMinor(request):
@login_required @login_required
def profile(request): def profile(request):
current_user = get_object_or_404(Student,user__username=request.user.username) current_user = get_object_or_404(Student,user__username=request.user.username)
return render_to_response('profile.html', { return render_to_response('profile.html', {
"current_user" : current_user, "current_user" : current_user,
"firstname" : current_user.user.first_name, "firstname" : current_user.user.first_name,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li> <li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li>
{% else %} {% else %}
<li><a href="{% url 'django.contrib.auth.views.login' %}">Log In</a></li> <li><a href="{% url 'django.contrib.auth.views.login' %}">Log In</a></li>
{% endif %} {% endif %}
</ul> </ul>
</div><!--/.nav-collapse --> </div><!--/.nav-collapse -->
</div> </div>
......
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