Commit Graph

19 Commits

Author SHA1 Message Date
3cb221bdde Update queryset-proxy.md (#840)
Fix code example under `create` section

Co-authored-by: collerek <collerek@gmail.com>
2022-09-28 12:21:10 +02:00
991d4a2a2c Referential Actions Enum Class (#735)
* feat: add action enum class to referential actions

* feat: write validation func for action name string

* test: write test for validation referential action

* fix: backend database running for action test

* fix: set the string type of value enum class

* fix: debuging return statement type for validation

* fix: return non empty for empty action

* refactor: change in line return if statement

* fix: add iterate method in read document md

* fix: update foreign key docstring types

* docs: write documention of refernal actions

* docs: complete referential actions descriptions

* refactor: rename and reposition referential action

* refactor: change validate referential action func

* test: add assert check for really deleted rows

* fix: debug error problem in renamed enum class

* fix: apply black formatted codes

* docs: update the document for referential actions

* docs: added note for server default argument

Co-authored-by: collerek <collerek@gmail.com>
2022-07-22 15:05:37 +02:00
06c3bdb5eb Iterators QuerySet Method (#688)
* feat: add iterator function with sample docstring

* feat: implement the iterator queryset method

* feat: completed the docstring of iterator method

* test: write test function to check iterator result

* refactor: use iterate method instead fetch_all

* fix: debuging syntax error in kwargs of iterator

* feat: write a base sample doc for iterator method

* refactor: add ouput comment iterator docs example

* refactor: check change pk yield ormar model

* test: write new test to coverage iterator queryset

* fix: debuging new user model class 3 number

* fix: iterate on user3 model class

* fix: debug id field in user3 model by main user

* fix: remove prefetch_related for iterator method

* fix: debug mypy test for type annotation

* fix: added type annotation for rows variable

* simplify row checks as processing is expensive, raise exception on prefetch_related with iterator

* fix coverage

* fix mypy, bump mypy in pre-commit to newest version

* refactor: update document and test uuid pk type

* feat: write docs of iterate in quesrysetproxy

* feat: write iterate method querysetproxy tests

* fix: debuging new test written uuid pk

* refactor: seperate iterate test modules

* refactor: change description and handle empty set

* feat: added iterate method in readme files

* fix: set pragma: no cover for raised test

Co-authored-by: collerek <collerek@gmail.com>
2022-07-04 12:41:28 +02:00
8376b6635e Merge pull request #557 from MojixCoder/master
Update get_or_create method
2022-03-28 13:04:55 +02:00
11e6f1eecd Fix collerek/ormar#588 documentation for distinct keyword to count method 2022-03-17 14:10:59 -04:00
0791e7cc4b Update docs 2022-02-01 10:28:11 +03:30
13a8655126 exclude through models 2021-06-06 15:58:38 +02:00
c8ca6edb22 fix for not saving related model in reverse rel 2021-06-02 13:05:10 +02:00
15e12ef55b allow customization of through model relation names 2021-04-16 16:27:07 +02:00
1c24ade8c8 fix __all__ error in exclude, update docs 2021-04-16 14:14:24 +02:00
67904980ce add docs 2021-03-15 18:45:46 +01:00
0ea9b0952c add default exceptions to relations, test one argument, test querysetproxy, test deeply nested 2021-03-09 10:13:51 +01:00
a8ae50276e update docs, add load_all(), tests for load_all, make through field optional 2021-03-03 19:48:40 +01:00
95385425fe update the dosc with split of queries, fix tests 2021-01-29 11:17:43 +01:00
b710ed9780 add tests for cross model forward references, add docs for processing forwardrefs, wip on refactoring queries into separate pages based on functionality 2021-01-26 17:29:40 +01:00
63f7b0d572 update docs 2020-12-22 13:10:48 +01:00
4cca8fe63f divide docs in sections, provide Meta attributes inheritance, add tests for fastapi use wih mixins and concrete 2020-12-11 15:51:29 +01:00
bae2d8e1c8 clean the meta, more tests, partial update of the docs 2020-12-11 13:13:13 +01:00
2e7cad722b reorganize docs into sections for easier navigation part 1 2020-12-10 18:10:08 +01:00