piccolo 1.26.0__py3-none-any.whl → 1.26.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.
- piccolo/__init__.py +1 -1
- piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja +2 -0
- piccolo/apps/migrations/auto/serialisation.py +6 -0
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/METADATA +1 -1
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/RECORD +9 -9
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/WHEEL +1 -1
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/entry_points.txt +0 -0
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/licenses/LICENSE +0 -0
- {piccolo-1.26.0.dist-info → piccolo-1.26.1.dist-info}/top_level.txt +0 -0
piccolo/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "1.26.
|
1
|
+
__VERSION__ = "1.26.1"
|
@@ -379,6 +379,12 @@ class SerialisedTableType(Definition):
|
|
379
379
|
else:
|
380
380
|
raise ValueError("Unrecognised `target_column` value.")
|
381
381
|
|
382
|
+
if column._meta.name == pk_column._meta.name:
|
383
|
+
# The target column is the foreign key, so no need to add
|
384
|
+
# it again.
|
385
|
+
# https://github.com/piccolo-orm/piccolo/issues/1197
|
386
|
+
continue
|
387
|
+
|
382
388
|
serialised_target_columns.add(
|
383
389
|
SerialisedColumnInstance(
|
384
390
|
column,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
piccolo/__init__.py,sha256=
|
1
|
+
piccolo/__init__.py,sha256=R1TEbIVKQirUMEWNBCSrH22aTTKtcGtSzEKUDESPuk4,23
|
2
2
|
piccolo/custom_types.py,sha256=7HMQAze-5mieNLfbQ5QgbRQgR2abR7ol0qehv2SqROY,604
|
3
3
|
piccolo/main.py,sha256=1VsFV67FWTUikPTysp64Fmgd9QBVa_9wcwKfwj2UCEA,5117
|
4
4
|
piccolo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -19,7 +19,7 @@ piccolo/apps/asgi/piccolo_app.py,sha256=7VUvqQJbB-ScO0A62S6MiJmQL9F5DS-SdlqlDLbA
|
|
19
19
|
piccolo/apps/asgi/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
20
|
piccolo/apps/asgi/commands/new.py,sha256=718mXx7XdDTN0CKK0ZB1WVMkOrQtVfqT5bqO1kDKnRk,4335
|
21
21
|
piccolo/apps/asgi/commands/templates/app/README.md.jinja,sha256=As3gNEZt9qcRmTVkjCzNtXJ8r4-3g0fCSe7Q-P39ezI,214
|
22
|
-
piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja,sha256=
|
22
|
+
piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja,sha256=ERbVPjjLQWDhXBYzZ_h3WT1Uf0qRL19rFE_NO3i09G0,3213
|
23
23
|
piccolo/apps/asgi/commands/templates/app/_esmerald_app.py.jinja,sha256=fIbD106Us4j2DBv_41PimvFRVw2FuZhOfc3xFPkNjuY,2715
|
24
24
|
piccolo/apps/asgi/commands/templates/app/_falcon_app.py.jinja,sha256=LOn3auJFeXNW48rtHzRbH3MzxWbRNhFib6Fm6wDS53E,1684
|
25
25
|
piccolo/apps/asgi/commands/templates/app/_fastapi_app.py.jinja,sha256=mKnYfUOnYyWJA1jFoRLCUOGQlK6imaxx_1qaauGjeeQ,2627
|
@@ -70,7 +70,7 @@ piccolo/apps/migrations/auto/migration_manager.py,sha256=5M2_01_FsZj6zIGXLEwkyEA
|
|
70
70
|
piccolo/apps/migrations/auto/operations.py,sha256=169IrCLR3FtTRxHsEHNg6dTG45lcEM7Aoyy3SwgX_hU,1329
|
71
71
|
piccolo/apps/migrations/auto/schema_differ.py,sha256=VA1rK-_wNSdyZZgfA3ZOlpVGJCcvLyouKtT9k2YKhiA,26266
|
72
72
|
piccolo/apps/migrations/auto/schema_snapshot.py,sha256=ZqUg4NpChOeoACKF2gkhqsz1BW3wOWFnzJCccq-CNNQ,4719
|
73
|
-
piccolo/apps/migrations/auto/serialisation.py,sha256=
|
73
|
+
piccolo/apps/migrations/auto/serialisation.py,sha256=dRX2jwuKMEqVfrZBXsoXcrWu7ZcfZVg-UgX-5-68aH4,24182
|
74
74
|
piccolo/apps/migrations/auto/serialisation_legacy.py,sha256=Edqx3YL0RGTsTHLNkHRNnXdfX6ut1h65U7UX2cI_BkE,1752
|
75
75
|
piccolo/apps/migrations/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
76
76
|
piccolo/apps/migrations/commands/backwards.py,sha256=sBLotsdbwX11dji4H7YWgbaonluZSKBs6V3zFB3l4SY,6654
|
@@ -200,7 +200,7 @@ piccolo/utils/sync.py,sha256=irmdTsYtURZNEBmIP6i2v2PyjgE-gK4t6VSxnBZ75Qo,920
|
|
200
200
|
piccolo/utils/warnings.py,sha256=ONrurw3HVCClUuHnpenMjg45dcFesrXqMgG9ifgP4_8,1247
|
201
201
|
piccolo/utils/graphlib/__init__.py,sha256=SUJ5Yh7LiRun3nkBuLUSVmGNHF6fANrxSoYan0mtYB0,200
|
202
202
|
piccolo/utils/graphlib/_graphlib.py,sha256=9FNGDSmTIEAk86FktniCe_J2yXjSE_sRZHDBAJJAUOw,9677
|
203
|
-
piccolo-1.26.
|
203
|
+
piccolo-1.26.1.dist-info/licenses/LICENSE,sha256=zFIpi-16uIJ420UMIG75NU0JbDBykvrdnXcj5U_EYBI,1059
|
204
204
|
profiling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
205
205
|
profiling/run_profile.py,sha256=264qsSFu93NTpExePnKQ9GkcN5fiuRBQ72WOSt0ZHck,829
|
206
206
|
tests/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -381,8 +381,8 @@ tests/utils/test_sql_values.py,sha256=vzxRmy16FfLZPH-sAQexBvsF9MXB8n4smr14qoEOS5
|
|
381
381
|
tests/utils/test_sync.py,sha256=9ytVo56y2vPQePvTeIi9lHIouEhWJbodl1TmzkGFrSo,799
|
382
382
|
tests/utils/test_table_reflection.py,sha256=SIzuat-IpcVj1GCFyOWKShI8YkhdOPPFH7qVrvfyPNE,3794
|
383
383
|
tests/utils/test_warnings.py,sha256=NvSC_cvJ6uZcwAGf1m-hLzETXCqprXELL8zg3TNLVMw,269
|
384
|
-
piccolo-1.26.
|
385
|
-
piccolo-1.26.
|
386
|
-
piccolo-1.26.
|
387
|
-
piccolo-1.26.
|
388
|
-
piccolo-1.26.
|
384
|
+
piccolo-1.26.1.dist-info/METADATA,sha256=lmx5t2AJagTQLlMQvoFy8Q1KKXhxQjOXQx1KCgvzOUI,5531
|
385
|
+
piccolo-1.26.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
386
|
+
piccolo-1.26.1.dist-info/entry_points.txt,sha256=SJPHET4Fi1bN5F3WqcKkv9SClK3_F1I7m4eQjk6AFh0,46
|
387
|
+
piccolo-1.26.1.dist-info/top_level.txt,sha256=-SR74VGbk43VoPy1HH-mHm97yoGukLK87HE5kdBW6qM,24
|
388
|
+
piccolo-1.26.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|