- Add `commit` parameter to `Entity.save()` method
- Implement `save_bulk()` method for efficient bulk creation of EAV values
- Modify `save()` method to collect values and use `save_bulk()` when commit is True
- Improve performance by reducing database queries during save operations
Replace ValidationError with a warning when creating Attributes with invalid slugs. This change allows existing code to continue functioning while alerting users to potential issues.
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.
- Implement dynamic EAV fieldset rendering in admin forms, supporting the inclusion of EAV attributes alongside standard model fields.
- Introduce `eav_fieldset_title` and `eav_fieldset_description` to customize the display of EAV fields in the admin.
- Refactor `render_change_form` to dynamically assemble fieldsets, including a dedicated section for EAV attributes.
* fix: use field class SplitDateTimeField for type 'date'
Fixes#261
* refactor: remove import conflict of django.forms
* style: isort imports
* docs: add fix#261 to changelog
* chore(models): fill `verbose_name` to most models.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* chore(locale): provide zh-Hans(Simplified Chinese) translation
* chore(locale/models): append `verbose_name` and `verbose_name_plural` for `eav.models`, to support translation.
* Fix value error
* test: add test for models with empty local_managers
* fix: check for local_managers being empty
Co-authored-by: Mike <22396211+Dresdn@users.noreply.github.com>
* chore: fix repo links
* style: flake8 format models.Value
* test: add test for an entity with uuid pk
* feat: support entity models with uuid as pk
* test: check Value repr and str methods