plain.admin 0.27.0__py3-none-any.whl → 0.27.1__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.
@@ -2,6 +2,7 @@ import json
2
2
 
3
3
  from plain.auth.views import AuthViewMixin
4
4
  from plain.http import ResponseRedirect
5
+ from plain.runtime import settings
5
6
  from plain.views import TemplateView
6
7
 
7
8
 
@@ -9,6 +10,13 @@ class QuerystatsView(AuthViewMixin, TemplateView):
9
10
  template_name = "querystats/querystats.html"
10
11
  admin_required = True
11
12
 
13
+ def check_auth(self):
14
+ # Allow the view if we're in DEBUG
15
+ if settings.DEBUG:
16
+ return
17
+
18
+ super().check_auth()
19
+
12
20
  def get_template_context(self):
13
21
  context = super().get_template_context()
14
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.admin
3
- Version: 0.27.0
3
+ Version: 0.27.1
4
4
  Summary: Admin dashboard and tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -32,7 +32,7 @@ plain/admin/querystats/__init__.py,sha256=VmP1aQ5Pviq4Z3izCB8G9g0Weq-2SYR88UFNtw
32
32
  plain/admin/querystats/core.py,sha256=kh45lRPEv9lYiTDNI_srrfoJue48v3kcrBNbOIHYCmw,4480
33
33
  plain/admin/querystats/middleware.py,sha256=g5Ld-Xx1eKq1AfED4oBHNkuhr5nUL1ILrzTv_tQVlPY,3528
34
34
  plain/admin/querystats/urls.py,sha256=H8wMpqKBnXqA8ZsdwdxTKQguNYJ0JsMRqqMunccBm2I,198
35
- plain/admin/querystats/views.py,sha256=-bETxg2REeit3xJ1HYhyUf7zh-Ra42iJM2zsaev0AVs,1573
35
+ plain/admin/querystats/views.py,sha256=bt6GKEbvqYb1HFhVOXHUbZErmjQMuvAIC5a3Mb5Pfuw,1754
36
36
  plain/admin/templates/admin/base.html,sha256=npIwsxHa7Gf5FYTmsXfgSor2bbYIWwTSk0-UFmnqmfE,8481
37
37
  plain/admin/templates/admin/delete.html,sha256=lNuU2G-BR6TH6NUmh7VcvjnEuFeI84rwwk_oO1jkUq0,431
38
38
  plain/admin/templates/admin/detail.html,sha256=AizpXs6HguFzwbk7JDbH8poJB5dM2CaVVaQ4FThAHaw,730
@@ -76,7 +76,7 @@ plain/admin/views/objects.py,sha256=eKL8A2B1ZMgTrCbTXnh6vCeju_HObxwetn_xc1vYlfY,
76
76
  plain/admin/views/registry.py,sha256=Lxib4YSQCMHb_zACnLKymJakV8jCZPWYll7J8-aV9Xw,3712
77
77
  plain/admin/views/types.py,sha256=ONMMdUoapgMoUVYgSIe-4YCdfvaVMQ4jgPWYiMo0pDk,178
78
78
  plain/admin/views/viewsets.py,sha256=dqMlQ6kLn9iqd9BwBWAZT1S271wH1FdfM5HXbOgBMEw,1655
79
- plain_admin-0.27.0.dist-info/METADATA,sha256=8Ig6XuGNeT_fMrVG2PPaMU79xCf9zWKyVlbwLT5ZJL8,4237
80
- plain_admin-0.27.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
- plain_admin-0.27.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
82
- plain_admin-0.27.0.dist-info/RECORD,,
79
+ plain_admin-0.27.1.dist-info/METADATA,sha256=CNTq99YxmZ1mso29n54YdPJ6wOdQQw6TRajtUIEVA2c,4237
80
+ plain_admin-0.27.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
+ plain_admin-0.27.1.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
82
+ plain_admin-0.27.1.dist-info/RECORD,,