I have this permission in Django that look like this: Can anybody help me get the params of request I tried using self.kwargs[“pk”], request.POST[‘pk’] but they all return saying object has no attribute. Answer If pk is a parameter of the POST request, you can access it with request.POST.get(‘pk’). In your post, you are not using get(), so that could
Tag: django-permissions
Group and Permissions Assignment Missing when using Custom User Model
I am building an app with multiple roles defined through Django Groups. I started with a custom user model, defined as below. I am seeing a weird difference in the groups and permissions use when using a custom user model, like the inheritance is missing something. I would like to use a custom user model so I don’t use username