I'm having an issue when traversing a link on my site. When clicking this link, I'm properly routed to the page, however the user i am logged in as is logged out for no reason. The link is part of a menu that looks as such:
<div> <div><a href="/home/">Home</a></div> <div><a href="/projects/add">Add Projects</a></div> <div><a href="/projects/">View Projects</a></div> <!-- <div><a href="">Search</a></div> <div><a href="">Send a Page</a></div> --> {% if user.is_staff %} <div><a href="/timesheets/add">Add Timesheets</a></div> <div><a href="/timesheets/">View Timesheets</a></div> <div><a href="/audit_init/">Audit/Export</a></div> <div><a href="/dump_init/">Timesheet Dump</a></div> <div><a href="/inventory_rep/">Report- Inventory</a></div> {% endif %} <div><a href="/logout/">Logout</a></div> </div> and the corresponding url.py line is: urlpatterns += patterns('helpdesk.projects.views', . . . (r'^audit_init/$','audit_choose'), . . . ) The view that renders the page looks like: @login_required @staff_member_required def audit_choose(request): master_engagements=[] master_clients=[] dept_list =Department.objects.filter(active=True).order_by('name') if request.method=='POST': . . . else: dept_list =Department.objects.filter(active=True).order_by('name') return render_to_response("audit_choose_departments.html", locals ()) Because i'm just clicking a link there is no post data, so the only relavent lines are those outside of the if request.method=='POST' section Is there anything i'm just doing completely wrong? I don't recall having this problem before, and just noticed it while debugging some other issues. Any help/ridicule/ideas would be great! thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---