Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MASQUERADE for Django 1.11
#1
I am upgrading my Python from 2 to 3 and Django from 1.8 to 1.11.

In the lastest Django release I am unable to use the masquerade feature.
The error I am getting is : 'User' object has no attribute 'is_masked'

The code where this is called is :
def mask(request, uid):
    if not request.user.is_masked and not request.user.is_staff:
        return PermissionDenied()
    elif not request.user.is_superuser and MASQUERADE_REQUIRE_SUPERUSER:
        return PermissionDenied()
If possible kindly help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 847 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020