AJAX request does not seem to have request.user
I have modified my admin site so that a state/province will be loaded
through an AJAX call when the country is chosen. I had
@login_required(redirect_field_name='/login/') called just before the
view so I could prevent unauthorized AJAX requests. This no longer
works after I upgraded from 1.1 to 1.2.1. It seems the user objects is
no longer on the request object. Is there a work around for this?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home