statezero 0.1.0b10__py3-none-any.whl → 0.1.0b11__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.
Potentially problematic release.
This version of statezero might be problematic. Click here for more details.
- statezero/adaptors/django/actions.py +3 -2
- {statezero-0.1.0b10.dist-info → statezero-0.1.0b11.dist-info}/METADATA +1 -1
- {statezero-0.1.0b10.dist-info → statezero-0.1.0b11.dist-info}/RECORD +6 -6
- {statezero-0.1.0b10.dist-info → statezero-0.1.0b11.dist-info}/WHEEL +0 -0
- {statezero-0.1.0b10.dist-info → statezero-0.1.0b11.dist-info}/licenses/license.md +0 -0
- {statezero-0.1.0b10.dist-info → statezero-0.1.0b11.dist-info}/top_level.txt +0 -0
|
@@ -157,12 +157,13 @@ class DjangoActionSchemaGenerator:
|
|
|
157
157
|
|
|
158
158
|
# Handle dict format: {'low': 'Low', 'high': 'High'}
|
|
159
159
|
if isinstance(choices, dict):
|
|
160
|
-
return
|
|
160
|
+
return choices
|
|
161
161
|
|
|
162
162
|
# Handle list/tuple format: [('low', 'Low'), ('high', 'High')]
|
|
163
163
|
elif isinstance(choices, (list, tuple)):
|
|
164
164
|
try:
|
|
165
|
-
|
|
165
|
+
# Return dict with value->label mapping (same as model)
|
|
166
|
+
return {str(choice[0]): choice[1] for choice in choices}
|
|
166
167
|
except (IndexError, TypeError) as e:
|
|
167
168
|
raise ValueError(
|
|
168
169
|
f"Invalid choice format for field '{field}'. Expected list of tuples "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statezero
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0b11
|
|
4
4
|
Summary: Connect your Python backend to a modern JavaScript SPA frontend with 90% less complexity.
|
|
5
5
|
Author-email: Robert <robert.herring@statezero.dev>
|
|
6
6
|
Project-URL: homepage, https://www.statezero.dev
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
statezero/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
statezero/adaptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
statezero/adaptors/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
statezero/adaptors/django/actions.py,sha256=
|
|
4
|
+
statezero/adaptors/django/actions.py,sha256=xO8cP0gJRaLt5ebAf7Ip17a6hIvWZd8R-xRAeSsxZAQ,9300
|
|
5
5
|
statezero/adaptors/django/apps.py,sha256=51ZvUIDmHeAIazoG2qraUZuBGbONJJzLQ28ob_-smU8,6055
|
|
6
6
|
statezero/adaptors/django/config.py,sha256=FVoKf-bYv0GAeAFjpQhfDnvn-L1c2noKXAg0B79egVo,3878
|
|
7
7
|
statezero/adaptors/django/context_manager.py,sha256=Vrscb63wGJ2frXnOPPcJGULiyDkPnRO2SUhN-K-pJeI,379
|
|
@@ -41,8 +41,8 @@ statezero/core/hook_checks.py,sha256=uqtvwRx1qGsF7Vc49elAWdOjMzhuv3RADKY1wiLvhK4
|
|
|
41
41
|
statezero/core/interfaces.py,sha256=kVkNWyh52tUlzD02CRheLJof3DyQoVcPuvX33fL6sn8,20544
|
|
42
42
|
statezero/core/process_request.py,sha256=dwIeBEVOE8zA-oE1h65XNOGiVqFbbXA7SzTAguLNgZk,8060
|
|
43
43
|
statezero/core/types.py,sha256=mMtqK3fGhEM6LtzUgQrxlyP-V0VgVqc-1eVKgRjTzp0,913
|
|
44
|
-
statezero-0.1.
|
|
45
|
-
statezero-0.1.
|
|
46
|
-
statezero-0.1.
|
|
47
|
-
statezero-0.1.
|
|
48
|
-
statezero-0.1.
|
|
44
|
+
statezero-0.1.0b11.dist-info/licenses/license.md,sha256=0uKjybTt9K_YbEmYgf25JN292qjjJ-BPofvIZ3wdtX4,7411
|
|
45
|
+
statezero-0.1.0b11.dist-info/METADATA,sha256=HvmRXx40pym9Vl5OHs2afULLOv1pxjvsX-BqgsaYmP8,6704
|
|
46
|
+
statezero-0.1.0b11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
47
|
+
statezero-0.1.0b11.dist-info/top_level.txt,sha256=UAuZYPKczradU1kcMQxsGjUzEW0qdgsqzhXyscrcLpw,10
|
|
48
|
+
statezero-0.1.0b11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|