wbcore 1.60.1__py2.py3-none-any.whl → 1.61.1__py2.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.
|
@@ -28,6 +28,7 @@ class Restframework:
|
|
|
28
28
|
"anon": f"{self.REST_FRAMEWORK_ANON_THROTTLE_RATES}/{self.REST_FRAMEWORK_THROTTLE_PERIOD}",
|
|
29
29
|
"user": f"{self.REST_FRAMEWORK_USER_THROTTLE_RATES}/{self.REST_FRAMEWORK_THROTTLE_PERIOD}",
|
|
30
30
|
},
|
|
31
|
+
"COERCE_DECIMAL_TO_STRING": False, # DRF default to True, we default to False to automatically cast decimal into float. Dev can decide to still not coerce decimal to string directly in the serializer
|
|
31
32
|
}
|
|
32
33
|
if self.DEBUG:
|
|
33
34
|
rest_framework["DEFAULT_AUTHENTICATION_CLASSES"] = (
|
|
@@ -89,9 +89,9 @@ class DecimalRangeField(RangeMixin, WBCoreSerializerFieldMixin, serializers.Deci
|
|
|
89
89
|
def to_representation(self, instance):
|
|
90
90
|
res = list(super().to_representation(instance))
|
|
91
91
|
# ensure empty value shows as None
|
|
92
|
-
if
|
|
92
|
+
if res[0] is None:
|
|
93
93
|
res[0] = "-Infinity"
|
|
94
|
-
if
|
|
94
|
+
if res[1] is None:
|
|
95
95
|
res[1] = "Infinity"
|
|
96
96
|
return tuple(res)
|
|
97
97
|
|
|
@@ -40,7 +40,7 @@ wbcore/configurations/configurations/maintenance.py,sha256=vNLy64RoCY-s665pCWQwa
|
|
|
40
40
|
wbcore/configurations/configurations/media.py,sha256=hRIDbB0ngL8ihq1myK1C2G5n7DVmrrM-s9XMua4QUng,753
|
|
41
41
|
wbcore/configurations/configurations/middleware.py,sha256=ITqS3loS2ottWLBLKDnaPuhZmXwyqlwrcpZ8IRD0000,1328
|
|
42
42
|
wbcore/configurations/configurations/network.py,sha256=seM15W9V1_id6X2Vxff_8mpQODB2v-hs8q5QFo2zeWM,822
|
|
43
|
-
wbcore/configurations/configurations/rest_framework.py,sha256=
|
|
43
|
+
wbcore/configurations/configurations/rest_framework.py,sha256=_VVyRQF8E3rh08k5I31LGSrl7_OWNqoEMvf2rWSN5lU,2297
|
|
44
44
|
wbcore/configurations/configurations/static.py,sha256=-OZXJvFpSlPAYspkeq97PL1VdiV1nh5_BYPO0jGmiVk,690
|
|
45
45
|
wbcore/configurations/configurations/templates.py,sha256=pCghzXBQXn-lN_1nmjnvCnAz1LaF0lLWZ34AhDz2QW0,575
|
|
46
46
|
wbcore/configurations/configurations/uvicorn.py,sha256=ZkklzlFwvMnOljNvr-Pl9QSGAGlNw-dYQjSiGx2GC-Y,368
|
|
@@ -1113,7 +1113,7 @@ wbcore/serializers/fields/fsm.py,sha256=xUYxDj166PDnmDLggI4fShXdSunJVzbc8quFQioM
|
|
|
1113
1113
|
wbcore/serializers/fields/json.py,sha256=8SmEOW2hXnTTfuCztaxA8AA3qtTxhCZtft7BJm1yO6o,2225
|
|
1114
1114
|
wbcore/serializers/fields/list.py,sha256=cYmMBg9M10Qb_5z98CeP3SjE2bV-u7Z0xkzXr-C3xoA,4178
|
|
1115
1115
|
wbcore/serializers/fields/mixins.py,sha256=sP1mEiD5tMZ4yCr-X0IkIY3RZwJcT0JokvontvRsDKw,7613
|
|
1116
|
-
wbcore/serializers/fields/number.py,sha256=
|
|
1116
|
+
wbcore/serializers/fields/number.py,sha256=qdPxELB6Up_BfA_cl_ouqmCKZha8JE0RNMn0b3w19Ls,3761
|
|
1117
1117
|
wbcore/serializers/fields/other.py,sha256=3r_70JH_A_daS99LuwQWwa0LNtyosKW7QKJzZgQA-zo,1131
|
|
1118
1118
|
wbcore/serializers/fields/primary_key.py,sha256=yTbs5B2QlUX-XKEtop3JpwIPeP-FhM8u-2qDXM5q6u0,676
|
|
1119
1119
|
wbcore/serializers/fields/related.py,sha256=mq7QhcjSG273G400ZueYJnNVNDlGgnUHLoAHaKRjW_Q,6355
|
|
@@ -1238,6 +1238,6 @@ wbcore/viewsets/generics.py,sha256=lKDq9UY_Tyc56u1bqaIEvHGgoaXwXxpZ1c3fLVteptI,1
|
|
|
1238
1238
|
wbcore/viewsets/mixins.py,sha256=KJxbd2arSplZg2dMD37VgDhCDQa69PyxtOxiCir0eXg,12059
|
|
1239
1239
|
wbcore/viewsets/utils.py,sha256=4520Ij3ASM8lOa8QZkCqbBfOexVRiZu688eW-PGqMOA,882
|
|
1240
1240
|
wbcore/viewsets/viewsets.py,sha256=G6BVJ3NzieT0TaeC1T3v8oKIT-nm61INLXnTus_6LUQ,6588
|
|
1241
|
-
wbcore-1.
|
|
1242
|
-
wbcore-1.
|
|
1243
|
-
wbcore-1.
|
|
1241
|
+
wbcore-1.61.1.dist-info/METADATA,sha256=fxgPoOH0OUjCU7pstxfK1J7OBfbNmGINNkWd9tb5aFE,2316
|
|
1242
|
+
wbcore-1.61.1.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
|
|
1243
|
+
wbcore-1.61.1.dist-info/RECORD,,
|
|
File without changes
|