00ab8a6d1d
switch to decorator used to register property_fields and save it on Meta inner class to expose to cloned fastapi models
collerek2020-12-04 09:51:00 +01:00
3b164c76de
revert adding props to fields
collerek2020-12-03 16:39:14 +01:00
b838fa1edf
some cleanup and optimization
collerek2020-12-03 09:15:19 +01:00
4c4e6248b0
fix for sample data in tests
collerek2020-12-01 08:34:26 +01:00
61da7b4418
expose querysetproxy on reverse of foreignkey (virtual fk), add additional methods from queryset to querysetproxy
collerek2020-12-01 08:27:08 +01:00
8a75379b44
update documentation, optimize for memory saving, update docs for select_related, fields and exclude_fields, bump version
collerek2020-11-26 09:15:13 +01:00
ba360974de
some refactors and cleanup
collerek2020-11-26 07:26:16 +01:00
f8dbb76965
add aliases to test prefetch_related
collerek2020-11-26 06:33:24 +01:00
c6146193b6
Merge pull request #52 from EspenAlbert/master
collerek2020-11-25 16:42:30 +07:00
1dc05a0fe3
apply suggestion on adding model_dict.pop(field, None)` since the model might be missing the field and that would cause an error.
EspenAlbert2020-11-25 08:49:04 +00:00
6f9b32b575
refactor to a more sensible test. reduce cyclomatic complexity of if clause
EspenAlbert2020-11-24 18:52:51 +00:00
0679bb4158
Remove else clause that was never hit.
EspenAlbert2020-11-24 09:31:59 +00:00
b0cf916531
add saving status and basic test for this
collerek2020-11-13 13:39:19 +01:00
381995250d
update docs, fix for ellipsis for whole model, some more tests
collerek2020-11-12 11:08:27 +01:00
d8391851fa
some further cleanup and optim
collerek2020-11-12 08:56:16 +01:00
e743286008
some cleanup of unused relations code, introduced caching of related_names and props on model, set profiling
collerek2020-11-12 08:11:40 +01:00
1242e5d600
allow passing a dict and set to fields and exclude_fields, store it as dict
collerek2020-11-11 19:00:03 +01:00
5552a8297f
Merge pull request #42 from collerek/fix_alias_order_by
collerek2020-11-11 16:50:17 +07:00
a797373983
add nested for all aliases as postgres serves nulls first when order by desc
collerek2020-11-11 10:35:16 +01:00
5663ad6cc2
move back instance creation before query in create to catch errors early
collerek2020-11-11 10:24:36 +01:00
9350b929aa
black, add additional tests with combined fields and exclude_fields, add aliases for column names to tests with fields and exclude_fields
collerek2020-11-11 10:10:30 +01:00
b1a30eaffc
Merge pull request #41 from smorokin/patch-1
collerek2020-11-11 15:52:30 +07:00
139a93267b
Use code example without type hints
smorokin2020-11-11 09:17:37 +01:00
bc9e3f6753
Merge pull request #40 from smorokin/patch-1
collerek2020-11-11 15:10:27 +07:00