Current options for Django permissions CBV/DRF
<p>What are the currently available options for permissions in Django that work for both class-based-views and Django-REST-Framework?</p>

<p>I don't want object-level permissions but rather something like <a href="https://github.com/dfunckt/django-rules" rel="nofollow">rules</a>, <a href="https://github.com/maraujop/django-rules" rel="nofollow">django-rules</a>, or <a href="https://github.com/dbkaplan/dry-rest-permissions" rel="nofollow">dry-rest-permissions</a>.</p>

<p>However, the first two appear to be specific to normal views while the second appears to be specific to DRF. I want both.</p>

<p>What are my options if I don't want to duplicate my permission rules.</p>

<p>Actually, <code>django-rules</code> already integrates well into the permission system of Django. Thus, <code>User.has_perm()</code> works out of the box with it.</p>

python django django-rest-framework