Wrong parameters are being handed into my custom permission classes #9220
-
|
I'm having an issue where the permission system is treating my custom permissions' methods like they are classmethods or staticmethods. When hitting a breakpoint in the permission method:
Have I configured it wrong somehow? My settings.py: permissions.py views/example.py |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I figured it out, I needed to hand in instances, not classes. But how do you | or those together? Like this? This seems to work fine, but is this the intended behavior? |
Beta Was this translation helpful? Give feedback.
I figured it out, I needed to hand in instances, not classes.
But how do you | or those together?
Like this?
This seems to work fine, but is this the intended behavior?