cardo-python-utils 0.5.dev0__tar.gz → 0.5.dev1__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.
Files changed (27) hide show
  1. {cardo_python_utils-0.5.dev0/cardo_python_utils.egg-info → cardo_python_utils-0.5.dev1}/PKG-INFO +2 -2
  2. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1/cardo_python_utils.egg-info}/PKG-INFO +2 -2
  3. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/pyproject.toml +2 -3
  4. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/django/auth/admin.py +1 -3
  5. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/LICENSE +0 -0
  6. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/MANIFEST.in +0 -0
  7. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/README.rst +0 -0
  8. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/cardo_python_utils.egg-info/SOURCES.txt +0 -0
  9. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/cardo_python_utils.egg-info/dependency_links.txt +0 -0
  10. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/cardo_python_utils.egg-info/requires.txt +0 -0
  11. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/cardo_python_utils.egg-info/top_level.txt +0 -0
  12. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/__init__.py +0 -0
  13. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/choices.py +0 -0
  14. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/data_structures.py +0 -0
  15. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/db.py +0 -0
  16. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/django/auth/__init__.py +0 -0
  17. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/django/auth/drf.py +0 -0
  18. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/django/auth/ninja.py +0 -0
  19. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/django/utils.py +0 -0
  20. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/esma_choices.py +0 -0
  21. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/exceptions.py +0 -0
  22. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/imports.py +0 -0
  23. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/math.py +0 -0
  24. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/text.py +0 -0
  25. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/time.py +0 -0
  26. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/python_utils/types_hinting.py +0 -0
  27. {cardo_python_utils-0.5.dev0 → cardo_python_utils-0.5.dev1}/setup.cfg +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cardo-python-utils
3
- Version: 0.5.dev0
3
+ Version: 0.5.dev1
4
4
  Summary: Python library enhanced with a wide range of functions for different scenarios.
5
- Author-email: Kristi Kotini <hello@cardoai.com>, Klajdi Çaushi <hello@cardoai.com>
5
+ Author-email: CardoAI <hello@cardoai.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/CardoAI/cardo-python-utils
8
8
  Project-URL: Repository, https://github.com/CardoAI/cardo-python-utils.git
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cardo-python-utils
3
- Version: 0.5.dev0
3
+ Version: 0.5.dev1
4
4
  Summary: Python library enhanced with a wide range of functions for different scenarios.
5
- Author-email: Kristi Kotini <hello@cardoai.com>, Klajdi Çaushi <hello@cardoai.com>
5
+ Author-email: CardoAI <hello@cardoai.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/CardoAI/cardo-python-utils
8
8
  Project-URL: Repository, https://github.com/CardoAI/cardo-python-utils.git
@@ -4,14 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cardo-python-utils"
7
- version = "0.5.dev0"
7
+ version = "0.5.dev1"
8
8
  description = "Python library enhanced with a wide range of functions for different scenarios."
9
9
  readme = "README.rst"
10
10
  requires-python = ">=3.8"
11
11
  license = {text = "MIT"}
12
12
  authors = [
13
- {name = "Kristi Kotini", email = "hello@cardoai.com"},
14
- {name = "Klajdi Çaushi", email = "hello@cardoai.com"}
13
+ {name = "CardoAI", email = "hello@cardoai.com"},
15
14
  ]
16
15
  keywords = ["utilities", "helpers", "django"]
17
16
  classifiers = [
@@ -44,6 +44,4 @@ class OIDCCustomAuthenticationBackend(OIDCAuthenticationBackend):
44
44
 
45
45
 
46
46
  def has_permission(request):
47
- # The user does not need to be staff to access the admin site
48
- # Only superusers will have access to do anything in the admin site
49
- return request.user.is_active and request.user.is_superuser
47
+ return request.user.is_active