django-ninja-aio-crud 0.8.2__tar.gz → 0.8.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-ninja-aio-crud
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: Django Ninja AIO CRUD - Rest Framework
5
5
  Author: Giuseppe Casillo
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  """Django Ninja AIO CRUD - Rest Framework"""
2
2
 
3
- __version__ = "0.8.2"
3
+ __version__ = "0.8.3"
4
4
 
5
5
  from .api import NinjaAIO
6
6
 
@@ -110,7 +110,8 @@ class APIViewSet:
110
110
  }
111
111
 
112
112
  def _auth_view(self, view_type: str):
113
- return getattr(self, f"{view_type}_auth") if self.auth is not NOT_SET else self.auth
113
+ auth = getattr(self, f"{view_type}_auth", None)
114
+ return auth if auth is not NOT_SET else self.auth
114
115
 
115
116
  def get_view_auth(self):
116
117
  return self._auth_view("get")