Skip to content

0.18.7

Compare
Choose a tag to compare
@eadwinCode eadwinCode released this 11 Mar 08:09
· 372 commits to master since this release
388023d

What's Changed

  • Allowed permission instance in permissions parameter by @eadwinCode in #54
from ninja_extra import permissions

# you can use instances of permission classes in defining your permissions.

@http_get('/sample', permissions=[permissions.IsAuthenticatedOrReadOnly | permissions. IsAuthenticated()])
def sample_endpoint(self):
   ...

Full Changelog: 0.18.6...0.18.7