Commit graph

26 commits

Author SHA1 Message Date
Mike
b5b576aca5 refactor: apply ruff linter rules and standardize code style
Replace flake8 with ruff and apply consistent linting rules across the entire codebase. Update type annotations, quotation marks, and other style-related changes to comply with the new standards.
2024-09-01 14:57:47 -07:00
Christian Clauss
0b683ef3d5 Fix typos with codespell --ignore-words-list=unkown --skip="*.po" -w 2024-01-10 21:06:29 +01:00
Mike
d45e31520e fix(queryset): apply filter to combine multiple eav filter kwargs 2023-09-08 14:06:52 -07:00
Mike
62184d8ccf docs: resolve docstring error 2022-08-13 10:07:54 -07:00
David
99b9bfc3ef
fixes https://github.com/jazzband/django-eav2/issues/163 (#164)
* fixes https://github.com/jazzband/django-eav2/issues/163

* chore: revert content to master

* fix: don't expand relational fields

* chore: ignore .vscode

* chore: update changelog

* chore: remove stale code

Co-authored-by: Mike <mike@zivix.com>
Co-authored-by: Mike <22396211+Dresdn@users.noreply.github.com>
2022-02-08 18:13:12 -08:00
Mike
5b9e5f2615 style: explicitly define import path 2021-10-16 10:45:01 -07:00
Mike
065de53ba4 style: run isort 2021-10-16 10:43:20 -07:00
Mike
b1badf8dc5 style: run black formatter 2021-10-16 10:43:02 -07:00
Daniel Indictor
1f629506a8
Merge pull request #49 from radalin/master
fix generic entity filter problem
2020-07-25 05:07:24 -04:00
John Vandenberg
e5c3ec600b Update import for Django 3.1 support 2020-07-15 07:49:04 +07:00
roy simkes
bfc48aab6e fix generic entity filter problem 2020-02-06 18:04:18 +03:00
Alexander Anikeev
e857819fce Add ability to assign enum values as strings (#46)
* Add ability to assign enum values as strings
* Remove unreachable code (enum validation now fails earlier)
* Enable filtering by enum value
2019-06-20 18:14:19 +02:00
Alexander Anikeev
cf8f95dfa7 Fix ordering with custom config (#44) 2019-02-01 20:38:41 +01:00
Siegmeyer
92ba7992d7
Add support for order_by clause to EavQuerySet (#39) 2018-09-21 13:47:03 +02:00
MajekX
f35ceaed22 Add registration via metaclass (#23)
Example:

    class SomeModel(metaclass=EAVModelMeta):
        pass
2018-07-27 14:01:38 +00:00
Iwo Herka
99254cd578 Move remaining docstrings to Google-stype format (#10) 2018-07-27 13:23:57 +00:00
Iwo Herka
d9dba5703c Rewrite documentation for modern Sphinx (#5) 2018-07-23 16:27:12 +00:00
Iwo Herka
d26bcfdbe7 Fix test compatibility 2018-07-20 12:17:19 +00:00
Iwo Herka
0677e7f7b5 Clean up code a bit; work on code-style 2018-07-13 09:02:43 +00:00
Iwo Herka
d60614ffb7 Remove 'distinct' call (#4) 2018-06-21 14:29:25 +02:00
Iwo Herka
df9c4b66fa Fix Python 2.7 compatibility 2018-06-14 16:15:36 +02:00
Siegmeyer of Catarina
591e4e11b1 Remove unused imports (#3) 2018-06-14 16:15:30 +02:00
Siegmeyer of Catarina
b9e788ab7d Change typechecking with type to isinstance 2018-06-04 23:52:36 +02:00
Siegmeyer of Catarina
9bf3dbfb5d Migrate module docstrings to Google-style format (#10) (#5) 2018-06-03 15:42:16 +02:00
Iwo Herka
2b6f470fa7
Add Q-expr rewriter/fix relational algebra (#1)
* Add debug Q-expr print function

* Change old __unicode__ methods to __str__ format

* Move __unicode__ methods to __str__

* Rewrite AND Q-expressions to safe form

* Make Q-expr debug print method use nicer format

* Document rewrite_q_expr function

* Rewrite/improve queries' test

* Document some more code

* Reorganize and document queryset module

* Add more tests for queries

* Use generic relation attribute instead instead of 'eav_values'

* Update docstring

* Fix a typo

* Move up a variable

* Rename a function

* Check if 'in' filter rhs is not a QuerySet

* Add newline to the end of file

* Fix typo; tweak docstring
2018-05-18 13:18:24 +02:00
Iwo Herka
bcd129a03d Move relational operators from EntityManager to EavQuerySet; allow for chaining 2018-04-26 13:29:57 +02:00