accrete 0.0.81__py3-none-any.whl → 0.0.83__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.
- accrete/contrib/ui/static/css/accrete.css +1 -1
- accrete/contrib/ui/static/css/accrete.scss +1 -1
- accrete/contrib/ui/templatetags/accrete_ui.py +12 -1
- accrete/utils/http.py +1 -1
- {accrete-0.0.81.dist-info → accrete-0.0.83.dist-info}/METADATA +1 -1
- {accrete-0.0.81.dist-info → accrete-0.0.83.dist-info}/RECORD +8 -8
- {accrete-0.0.81.dist-info → accrete-0.0.83.dist-info}/WHEEL +0 -0
- {accrete-0.0.81.dist-info → accrete-0.0.83.dist-info}/licenses/LICENSE +0 -0
@@ -20616,7 +20616,7 @@ td {
|
|
20616
20616
|
height: 100%;
|
20617
20617
|
display: flex;
|
20618
20618
|
flex-direction: column;
|
20619
|
-
justify-content:
|
20619
|
+
justify-content: start;
|
20620
20620
|
font-weight: 300;
|
20621
20621
|
word-break: break-word;
|
20622
20622
|
padding: 12px 12px 12px 0;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import logging
|
2
|
+
from datetime import timedelta
|
2
3
|
from django import template
|
3
4
|
from django.db.models import Manager
|
4
5
|
from django.forms import Form, ModelForm
|
@@ -93,4 +94,14 @@ def non_field_error_code(form: [Form|ModelForm], code: str) -> bool:
|
|
93
94
|
for error in form.non_field_errors().as_data():
|
94
95
|
if error.code and error.code == code:
|
95
96
|
return True
|
96
|
-
return False
|
97
|
+
return False
|
98
|
+
|
99
|
+
|
100
|
+
@register.filter(name='timedelta_cast')
|
101
|
+
def timedelta_cast(td: timedelta, code: str) -> str | None:
|
102
|
+
if not isinstance(td, timedelta):
|
103
|
+
return None
|
104
|
+
codes = ['days', 'hours', 'minutes', 'seconds', 'microseconds']
|
105
|
+
if code not in codes:
|
106
|
+
return None
|
107
|
+
return str(getattr(td, code))
|
accrete/utils/http.py
CHANGED
@@ -112,7 +112,7 @@ def cast_param(params: dict, param: str, cast_to: Callable, default):
|
|
112
112
|
return default
|
113
113
|
|
114
114
|
|
115
|
-
def check_method(method: str, allowed: list[str]) ->
|
115
|
+
def check_method(method: str, allowed: list[str]) -> HttpResponseNotAllowed | None:
|
116
116
|
if method not in allowed:
|
117
117
|
return HttpResponseNotAllowed(allowed)
|
118
118
|
|
@@ -145,9 +145,9 @@ accrete/contrib/ui/static/bulma/versions/bulma-no-dark-mode.scss,sha256=w6Q80mCV
|
|
145
145
|
accrete/contrib/ui/static/bulma/versions/bulma-no-helpers-prefixed.scss,sha256=6HCUc4hxyaj4_rHqUnoy7aMuFZECHDYh5jvp-1CEtfE,344
|
146
146
|
accrete/contrib/ui/static/bulma/versions/bulma-no-helpers.scss,sha256=5dzAXSgReWUO8GXLbYTpOclPPD0xqvvBiCCX_GOR_5U,313
|
147
147
|
accrete/contrib/ui/static/bulma/versions/bulma-prefixed.scss,sha256=Yj7oEO00jy_G_L32y6rwzp2P5p2YtQ2Pvq4aZhvBSE8,138
|
148
|
-
accrete/contrib/ui/static/css/accrete.css,sha256=
|
148
|
+
accrete/contrib/ui/static/css/accrete.css,sha256=Tb5BTgfllye5wDKd2jlqT1YyjDKCTBb7_OIyyAg9RW8,606260
|
149
149
|
accrete/contrib/ui/static/css/accrete.css.map,sha256=HidDMGwiC4ggcZn2D_KaRG-B_qm4GmUWTG7cs5RASIA,94519
|
150
|
-
accrete/contrib/ui/static/css/accrete.scss,sha256=
|
150
|
+
accrete/contrib/ui/static/css/accrete.scss,sha256=_smq6-FiNIYIXyRK7FqHtcvQzEzVUfux6lew26pK3f0,11618
|
151
151
|
accrete/contrib/ui/static/css/fa.css,sha256=wiz7ZSCn_btzhjKDQBms9Hx4sSeUYsDrTLg7roPstac,102641
|
152
152
|
accrete/contrib/ui/static/css/icons.css,sha256=5550KHsaayeEtRaUdf0h7esQhyec-_5ZfecZ_sOC6v0,6334
|
153
153
|
accrete/contrib/ui/static/icons/Logo.svg,sha256=hGZuxrAa-LRpFavFiF8Lnc7X9OQcqmb6Xl_dxx-27hM,1861
|
@@ -189,7 +189,7 @@ accrete/contrib/ui/templates/ui/partials/table_field_float.html,sha256=GH_jFdpk8
|
|
189
189
|
accrete/contrib/ui/templates/ui/partials/table_field_monetary.html,sha256=Wtod9vel2dD4vG8lUVLbtls4aU_2EG3p0E1QRRUSH10,166
|
190
190
|
accrete/contrib/ui/templates/ui/partials/table_field_string.html,sha256=GH_jFdpk8wEJXv4QfO6c3URYrZGGLeuSyWwWl2cWxwQ,45
|
191
191
|
accrete/contrib/ui/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
192
|
-
accrete/contrib/ui/templatetags/accrete_ui.py,sha256=
|
192
|
+
accrete/contrib/ui/templatetags/accrete_ui.py,sha256=KTuOeMJJAZ7d4WaXQMeP2LYjmt8CU6cNY7rf4BGpBYs,3063
|
193
193
|
accrete/contrib/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
194
194
|
accrete/contrib/user/admin.py,sha256=YS4iApli7XUaIl9GsEJxys2j8sepX0by88omYHjff-E,85
|
195
195
|
accrete/contrib/user/apps.py,sha256=oHDrAiHf-G57mZLyxqGJzRY2DbPprGFD-QgyVJG_ruI,156
|
@@ -228,9 +228,9 @@ accrete/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
228
228
|
accrete/utils/__init__.py,sha256=1t9OXAR5qtG4mhGgeIEuVZG2PZjtM_jrEA235Gds7Y8,264
|
229
229
|
accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
230
230
|
accrete/utils/forms.py,sha256=IvxbXNpSd4a-JBgsTJhs2GHe-DCRWX-xnVPRcoiCzbI,3104
|
231
|
-
accrete/utils/http.py,sha256=
|
231
|
+
accrete/utils/http.py,sha256=sUDwa9hpYAle7d0iJxIA5wQk2mK2BMENo7JyFBSPxKc,4475
|
232
232
|
accrete/utils/models.py,sha256=EEhv7-sQVtQD24PEb3XcDUAh3VVhVFoMMLyFrDjGEaI,706
|
233
|
-
accrete-0.0.
|
234
|
-
accrete-0.0.
|
235
|
-
accrete-0.0.
|
236
|
-
accrete-0.0.
|
233
|
+
accrete-0.0.83.dist-info/METADATA,sha256=g26OFyCBdhAsOVsC62P438tXUQTI4omKCtfidjp8nHI,4952
|
234
|
+
accrete-0.0.83.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
235
|
+
accrete-0.0.83.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
236
|
+
accrete-0.0.83.dist-info/RECORD,,
|
File without changes
|
File without changes
|