Commit graph

101 commits

Author SHA1 Message Date
pre-commit-ci[bot]
b011b1beee [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-25 08:47:38 +00:00
mathiasag7
b2f81240c1 tests + migration file updated 2024-03-25 09:47:25 +01:00
mathiasag7
08a26993c1 tests + migration file updated 2024-03-22 16:20:56 +01:00
mathiasag7
4c6ceedf04 tests + migration file updated 2024-03-22 16:04:42 +01:00
mathiasag7
3b8d28c49e tests + migration file updated 2024-03-22 15:55:01 +01:00
mathiasag7
2ff929281a tests + migration file updated 2024-03-22 15:49:47 +01:00
mathiasag7
ae01a4cfe9
Merge branch 'jazzband:master' into master 2024-03-08 12:59:29 +01:00
Mike
4d2c080857 test(forms): add test case for BaseEntityAdmin with no attributes 2024-03-06 09:34:45 -08:00
Mike
5bc35da842 refactor(tests): expand EntityAdmin form tests and move to base function 2024-03-06 09:34:45 -08:00
mathiasag7
b0c2b50800 set charfield as default pk to avoid errors 2023-12-04 09:35:35 +01:00
mathiasag7
3b1be10e9b
feat: Provide UUIDField option for pk field and a natural key feature for serialization (#428) 2023-10-30 08:57:29 -07:00
mathiasag7
43365cd3d8 Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid 2023-10-25 09:34:48 +01:00
mathiasag7
db893d3aab feat: test_natural_keys implemented 2023-10-25 09:34:23 +01:00
Mike
f7cd292b91 remove test cehcking for ValueError
get_pk_format() always returns a valid value
2023-10-24 08:11:14 -07:00
Mike
1d70d73a2c convert tests to pytest 2023-10-24 08:10:01 -07:00
mathiasag7
9407982d29 revert changes 2023-10-16 10:20:02 +01:00
mathiasag7
4ef7f7a271 test updated 2023-10-13 11:44:20 +01:00
mathiasag7
d26f61ac94 test updated 2023-10-13 11:42:59 +01:00
mathiasag7
0000e26205 migration file created 2023-10-13 11:28:47 +01:00
mathiasag7
0d705d97ce test: pyproject.toml updated" 2023-10-13 11:02:19 +01:00
mathiasag7
6e90e9c6b1 test: test_attribute errors corrected on AutoField 2023-10-13 10:25:48 +01:00
Mike
dd5f375640 test(queryset): add filter test for multiple EAV attributes 2023-09-08 14:06:52 -07:00
Mike
fb83744dd9 test: remove deprecated slug test 2022-08-12 14:45:30 -07:00
Mike
8c183333d1 chore: update text description 2022-08-12 14:24:47 -07:00
Mike
653ed7fd38 refactor: move generate_slug to logic 2022-08-12 14:23:41 -07:00
Mike
cc2acd0724 test: add Attribute model tests 2022-08-12 13:31:55 -07:00
Mike
d643bddb95 test: add TYPE_CSV form tests 2022-06-12 21:53:01 -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
ed7a808ee8
Allow for integer values larger than 32-bits (#137)
* style: apply ignores to all migrations

* feat: support 64-bit integers

* doc: update changelog

* test: add test for bigger than 32-bit integer
2021-12-18 19:29:38 -08:00
Mike
bb68d7cec7
fix: correct str() and repr() for EnumGroup and EnumValue (#92)
* test: add tests for Enum represtations

* chore: correct str() and repr() for EnumGroup and EnumValue
2021-10-26 07:04:44 -07:00
PUYUP
9b5df1c99e
fix: handle models with empty local_managers (#90)
* 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>
2021-10-26 06:10:36 -07:00
Mike
a98766fc55
Add support for Entity models with UUID as a primary key. (#89)
* 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
2021-10-22 15:36:17 -07:00
Mike
6013220684 test: Add new get_or_create() with defaults test 2021-10-20 07:06:09 -07:00
Mike
1e3c547551 test: use new test_project 2021-07-04 08:59:24 -07:00
Mike
3ebbf8d8e7 tests: refactor tests to use pytest 2021-06-17 16:38:46 -07:00
Mauro
b2c16c05c4 Adding CSV datatype + CSVField (widget, formfield also) + validators + tests 2021-05-10 17:13:42 -03:00
Mauro
39e1ff35f7 Adding a JSON Datatype 2021-04-04 23:53:45 -03:00
Zach Taylor
9a4c8f3ad3 Add instance parameter to config get_attributes 2020-10-22 15:53:34 -05:00
Daniel Indictor
89358a6c46
Made changes necessary to bump supported Django version to 3.0 2020-04-13 04:18:02 -04: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
Iwo Herka
c033ee64a2 Add form test involving enums 2018-08-10 08:19:37 +00:00
John Carter
5ba33e7e6e patch migration, made tox check for missing migrations (#35)
Add tox for missing migrations; fix verbose names in models and migration
2018-08-02 11:16:44 +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
e0a76f86b2 Rename "enums" attribute on the EnumGroup to "values" (#20) 2018-07-27 12:54:05 +00:00
MajekX
9d044ee8e2 Fix tests for Django 2.1+ (tip) (#25) 2018-07-27 13:47:01 +02:00
Iwo Herka
d26bcfdbe7 Fix test compatibility 2018-07-20 12:17:19 +00:00
Iwo Herka
8db7c39bbf Save M2M relations on form save (#13) 2018-07-13 14:06:21 +00:00
Iwo Herka
ab9636a1c5 Add test for invalid form 2018-07-13 12:05:34 +00:00