django-cms-qe 3.6.0__py3-none-any.whl → 3.6.2__py3-none-any.whl

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.
cms_qe/api/views.py CHANGED
@@ -1,4 +1,4 @@
1
- from django.contrib.auth import get_user_model
1
+ from django.contrib.auth import authenticate
2
2
  from django.db.models import Model
3
3
  from django.http import HttpRequest
4
4
  from django.utils.translation import gettext_lazy as _
@@ -10,11 +10,7 @@ class CmsQeBasicAuthentication(BasicAuthentication):
10
10
 
11
11
  def authenticate_credentials(self, userid: str, password: str, request: HttpRequest = None) -> tuple[Model, None]:
12
12
  """Check credentials against settings and return AnonymousUser or None."""
13
- class_user = get_user_model()
14
- try:
15
- user = class_user.objects.get(username=userid, is_active=True)
16
- except class_user.DoesNotExist as err:
17
- raise AuthenticationFailed(_("User inactive or deleted.")) from err
18
- if user.check_password(password):
19
- return (user, None)
20
- raise AuthenticationFailed(_("Invalid username/password."))
13
+ retval = authenticate(request, userid=userid, username=userid, password=password)
14
+ if retval is None:
15
+ raise AuthenticationFailed(_("Invalid username/password."))
16
+ return (retval, None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-cms-qe
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: Django CMS Quick & Easy provides all important modules to run new page withouta lot of coding. Aims to do it very easily and securely.
5
5
  Home-page: https://websites.pages.nic.cz/django-cms-qe
6
6
  Author: CZ.NIC, z.s.p.o.
@@ -26,8 +26,9 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
26
26
  Requires-Python: >=3.9
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: LICENSE
29
- Requires-Dist: Django~=4.2
30
- Requires-Dist: easy-thumbnails[svg]
29
+ Requires-Dist: django~=4.2
30
+ Requires-Dist: django-cms~=3.11
31
+ Requires-Dist: easy-thumbnails[svg]~=2.10
31
32
  Requires-Dist: djangocms-frontend~=1.1
32
33
  Requires-Dist: django-csp~=3.7
33
34
  Requires-Dist: djangocms-picture~=4.0
@@ -41,16 +42,16 @@ Requires-Dist: djangocms-googlemap~=2.0
41
42
  Requires-Dist: django-tablib~=3.2
42
43
  Requires-Dist: mailchimp3~=3.0
43
44
  Requires-Dist: argon2-cffi~=21.3
44
- Requires-Dist: djangocms-aldryn-forms[captcha]
45
- Requires-Dist: djangocms-aldryn-search
45
+ Requires-Dist: djangocms-aldryn-forms[captcha]~=7.7
46
+ Requires-Dist: djangocms-aldryn-search~=2.0
46
47
  Requires-Dist: django-haystack~=3.2
47
48
  Requires-Dist: pymemcache~=4.0
48
49
  Requires-Dist: whoosh~=2.7
49
- Requires-Dist: djangorestframework
50
- Requires-Dist: markdown
51
- Requires-Dist: django-filter
52
- Requires-Dist: django-rest-knox
53
- Requires-Dist: drf-spectacular
50
+ Requires-Dist: djangorestframework~=3.16
51
+ Requires-Dist: markdown~=3.8
52
+ Requires-Dist: django-filter~=25.1
53
+ Requires-Dist: django-rest-knox~=5.0
54
+ Requires-Dist: drf-spectacular~=0.28
54
55
  Provides-Extra: dev
55
56
  Requires-Dist: django-debug-toolbar~=4.1; extra == "dev"
56
57
  Requires-Dist: django-extensions~=3.2; extra == "dev"
@@ -61,15 +62,15 @@ Requires-Dist: mypy; extra == "test"
61
62
  Requires-Dist: pylint; extra == "test"
62
63
  Requires-Dist: pylint-django; extra == "test"
63
64
  Requires-Dist: pytest~=6.2; extra == "test"
64
- Requires-Dist: pytest-data==0.4; extra == "test"
65
- Requires-Dist: pytest-django==3.9.0; extra == "test"
66
- Requires-Dist: pytest-env==0.6.2; extra == "test"
67
- Requires-Dist: pytest-pythonpath==0.7.3; extra == "test"
68
- Requires-Dist: pytest-sugar==0.9.3; extra == "test"
69
- Requires-Dist: pytest-watch==4.2.0; extra == "test"
70
- Requires-Dist: PyVirtualDisplay==1.3.2; extra == "test"
71
- Requires-Dist: webdriverwrapper==2.8.0; extra == "test"
72
- Requires-Dist: django-simple-captcha==0.5.14; extra == "test"
65
+ Requires-Dist: pytest-data~=0.4; extra == "test"
66
+ Requires-Dist: pytest-django~=3.9; extra == "test"
67
+ Requires-Dist: pytest-env~=0.6; extra == "test"
68
+ Requires-Dist: pytest-pythonpath~=0.7; extra == "test"
69
+ Requires-Dist: pytest-sugar~=0.9; extra == "test"
70
+ Requires-Dist: pytest-watch~=4.2; extra == "test"
71
+ Requires-Dist: PyVirtualDisplay~=1.3; extra == "test"
72
+ Requires-Dist: webdriverwrapper~=2.8; extra == "test"
73
+ Requires-Dist: django-simple-captcha~=0.5; extra == "test"
73
74
  Requires-Dist: testfixtures; extra == "test"
74
75
  Requires-Dist: tzdata; extra == "test"
75
76
  Provides-Extra: build
@@ -80,7 +81,7 @@ Requires-Dist: psycopg2; extra == "psql"
80
81
  Provides-Extra: mysql
81
82
  Requires-Dist: mysqlclient~=2.2; extra == "mysql"
82
83
  Provides-Extra: newsblog
83
- Requires-Dist: djangocms-aldryn-newsblog; extra == "newsblog"
84
+ Requires-Dist: djangocms-aldryn-newsblog~=3.3; extra == "newsblog"
84
85
  Dynamic: author
85
86
  Dynamic: author-email
86
87
  Dynamic: classifier
@@ -14,7 +14,7 @@ cms_qe/api/constants.py,sha256=pdSziATRm6yUaaPBYoD07JXcULMvKD0h5RdNTPpG0rM,64
14
14
  cms_qe/api/permissions.py,sha256=QKSll8wVOWKNbvX_FsC9CRKbPVcT2s5FM81_fnqeEQg,409
15
15
  cms_qe/api/urls.py,sha256=UPd7OUHTJxszNLZo3wu50wyVd7Df2F82PFP-Zr2N_fk,1445
16
16
  cms_qe/api/utils.py,sha256=04lsxEkYXlOynCdsz6srdn7-h8Qdpn_lBwmjpJ89OI4,456
17
- cms_qe/api/views.py,sha256=hTq7jEJ9mzozbYaTPRQW2vfo2EboJ6OyO6Nl0lIsm9I,947
17
+ cms_qe/api/views.py,sha256=-Wn2paVsMVfErZOschb_xjYJhpe1-ACN7zqm3bm9vFk,769
18
18
  cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.css,sha256=xOpS-e_dER8z72w-qryCieOGysQI8cELAVt3MHG0phY,26132
19
19
  cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.css.map,sha256=cZQbJTuJQjdM1XuKhdRzSJ8hMRQ4up491P76Iq2_D1M,47706
20
20
  cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.min.css,sha256=ZT4HPpdCOt2lvDkXokHuhJfdOKSPFLzeAJik5U_Q-l4,23409
@@ -3959,7 +3959,7 @@ cms_qe_video/templates/cms_qe/video/video_source_file.html,sha256=QJF5fs88s9Fznp
3959
3959
  cms_qe_video/templates/cms_qe/video/video_widget.html,sha256=Yumciq6bGlAYI1lYx5j9V6IF8QYrncNYygPTkXEz6Wk,925
3960
3960
  cms_qe_video/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3961
3961
  cms_qe_video/templatetags/cms_qe_video.py,sha256=NR_mGv91J0rEreZrQjCzaaXSrZsKvrSas12wMJ-Dg24,1168
3962
- django_cms_qe-3.6.0.dist-info/licenses/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
3962
+ django_cms_qe-3.6.2.dist-info/licenses/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
3963
3963
  example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3964
3964
  example/urls.py,sha256=H-IJsRGFVZGw6FD9gvK-0B0dLeSOsduziHvDvcHCQZ0,399
3965
3965
  example/wsgi.py,sha256=lCKhvtFZlorSIA8qYEqc3pZ1Oflrz_Tc696MWJ62ue4,396
@@ -3980,7 +3980,7 @@ test_selenium/pages/cms/__init__.py,sha256=_qe4YZYaQbrXp7Szmmeo4TUSkXlE5Rozu8E3t
3980
3980
  test_selenium/pages/cms/login.py,sha256=UPzJQcYff8NUAT4nvmfQoJQxzOJyPrJ_cKtH35NVfNg,521
3981
3981
  test_selenium/pages/cms/page.py,sha256=YQnpZkopfVnhoyQKpRDGqjNeV6xUl-pEHjEcZ9HRiPk,489
3982
3982
  test_selenium/pages/cms/wizard.py,sha256=yatbXH-rf1ap4O1hY0I13WikM3zkm_NrAiSK6bqENIU,545
3983
- django_cms_qe-3.6.0.dist-info/METADATA,sha256=jAhwwpVT8EnPvK-dAJihBIrz6nHPCtByUhtS_dbG4Yg,5080
3984
- django_cms_qe-3.6.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
3985
- django_cms_qe-3.6.0.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
3986
- django_cms_qe-3.6.0.dist-info/RECORD,,
3983
+ django_cms_qe-3.6.2.dist-info/METADATA,sha256=E_wsuUGjhNkXb6Q0illcS4oRwDN34PCFZV9QDrFTcug,5144
3984
+ django_cms_qe-3.6.2.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
3985
+ django_cms_qe-3.6.2.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
3986
+ django_cms_qe-3.6.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5