00ab8a6d1d
switch to decorator used to register property_fields and save it on Meta inner class to expose to cloned fastapi models
collerek
2020-12-04 09:51:00 +01:00
3b164c76de
revert adding props to fields
collerek
2020-12-03 16:39:14 +01:00
b838fa1edf
some cleanup and optimization
collerek
2020-12-03 09:15:19 +01:00
4e10ff03e2
more optimizations
collerek
2020-12-02 20:39:30 +01:00
3e615a8057
work in progres pydantic_only and properties
collerek
2020-12-02 19:15:55 +01:00
4c4e6248b0
fix for sample data in tests
collerek
2020-12-01 08:34:26 +01:00
61da7b4418
expose querysetproxy on reverse of foreignkey (virtual fk), add additional methods from queryset to querysetproxy
collerek
2020-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
collerek
2020-11-26 09:15:13 +01:00
ba360974de
some refactors and cleanup
collerek
2020-11-26 07:26:16 +01:00
f8dbb76965
add aliases to test prefetch_related
collerek
2020-11-26 06:33:24 +01: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.
EspenAlbert
2020-11-25 08:49:04 +00:00
6f9b32b575
refactor to a more sensible test. reduce cyclomatic complexity of if clause
EspenAlbert
2020-11-24 18:52:51 +00:00
0679bb4158
Remove else clause that was never hit.
EspenAlbert
2020-11-24 09:31:59 +00:00
cf3ec2e2a5
Refactor tests to cover all lines.
EspenAlbert
2020-11-24 09:09:54 +00:00
a668b20f1a
Add test for an Album with tracks.
EspenAlbert
2020-11-24 08:56:57 +00:00
3eccd05ece
support updating models on the many side of the one-to-many relations.
EspenAlbert
2020-11-24 08:40:19 +00:00
585bba3ad3
dirty many to many pass first test
collerek
2020-11-23 17:03:31 +01:00
b696156f56
dirty prefetch_related working for FK and reverse FK
collerek
2020-11-23 16:05:05 +01:00
08779f4689
fix two step example in docs index and readme
collerek
2020-11-22 08:47:21 +01:00
29c364675f
switch badge to github action - rename the action workflow
collerek
2020-11-20 13:32:47 +01:00
e805ff16b2
introduce upsert method on model, add tests to see if save status properly changing on nested models
collerek
2020-11-14 13:53:32 +01:00
1f67da3a5c
add save status and tests
collerek
2020-11-13 16:21:12 +01:00
b0cf916531
add saving status and basic test for this
collerek
2020-11-13 13:39:19 +01:00
381995250d
update docs, fix for ellipsis for whole model, some more tests
collerek
2020-11-12 11:08:27 +01:00
d8391851fa
some further cleanup and optim
collerek
2020-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
collerek
2020-11-12 08:11:40 +01:00
1242e5d600
allow passing a dict and set to fields and exclude_fields, store it as dict
collerek
2020-11-11 19:00:03 +01:00
a797373983
add nested for all aliases as postgres serves nulls first when order by desc
collerek
2020-11-11 10:35:16 +01:00
5663ad6cc2
move back instance creation before query in create to catch errors early
collerek
2020-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
collerek
2020-11-11 10:10:30 +01:00