heya,

I'm using the permission-required decorator with the inbuilt login view.

When I login as a user who has the appropriate permissions, it logs in fine, 
and all is good.

When I try to login as a user with valid credentials but lacking the 
appropriate permission, it simply keeps redirecting to the login page again 
- but doesn't display any error message at all.

I tried adding "{{ form.non_field_errors }}" to the form but it still 
doesn't display any error messages.

Is there any way to get it to display that your user lacks the appropriate 
permissions, as opposed to just redirecting to a blank login page again and 
again.

Cheers,
Victor

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/alIHHeQMVb4J.
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.

Reply via email to