Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using UUIDField as EAV2_PRIMARY_KEY_FIELD value #478

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
413cdf7
add uuid configuration for id generation of eav models
mathiasag7 Sep 6, 2023
8977495
add charfield possibility to eav id models field
mathiasag7 Sep 6, 2023
de7fb79
feat: natural key handler added to models except value model
mathiasag7 Sep 6, 2023
a73e327
feat: natural key handler added to value model
mathiasag7 Sep 6, 2023
6a01f16
Update CHANGELOG.md
mathiasag7 Sep 6, 2023
4be9a24
Update pyproject.toml
mathiasag7 Sep 6, 2023
832d4f3
fix: get attribute for value natural key function
mathiasag7 Sep 7, 2023
ac3c60b
Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid
mathiasag7 Sep 7, 2023
7ebfb85
update package log
mathiasag7 Sep 7, 2023
ce2b606
fix: error on attribute creation
mathiasag7 Sep 7, 2023
dffbe60
Update README.md
mathiasag7 Oct 5, 2023
2c69da6
readme updated
mathiasag7 Oct 5, 2023
e275a7f
readme updated
mathiasag7 Oct 5, 2023
0aa172c
changelog updated
mathiasag7 Oct 6, 2023
33f6279
feat: natural key for serialization and UUIDField possibility for pk …
mathiasag7 Oct 6, 2023
f342f3c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2023
6e90e9c
test: test_attribute errors corrected on AutoField
mathiasag7 Oct 13, 2023
06e8cd5
Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid
mathiasag7 Oct 13, 2023
13e5e99
Merge branch 'jazzband:master' into master
mathiasag7 Oct 13, 2023
668dcab
test: pytest.ini file added
mathiasag7 Oct 13, 2023
011965f
Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid
mathiasag7 Oct 13, 2023
e64425d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2023
0d705d9
test: pyproject.toml updated"
mathiasag7 Oct 13, 2023
0000e26
migration file created
mathiasag7 Oct 13, 2023
7a00e04
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2023
d26f61a
test updated
mathiasag7 Oct 13, 2023
8bf3fee
Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid
mathiasag7 Oct 13, 2023
4ef7f7a
test updated
mathiasag7 Oct 13, 2023
9407982
revert changes
mathiasag7 Oct 16, 2023
1d70d73
convert tests to pytest
Dresdn Oct 24, 2023
f7cd292
remove test cehcking for ValueError
Dresdn Oct 24, 2023
db893d3
feat: test_natural_keys implemented
mathiasag7 Oct 25, 2023
43365cd
Merge branch 'master' of github.com:mathiasag7/django-eav2-uuid
mathiasag7 Oct 25, 2023
b0c2b50
set charfield as default pk to avoid errors
mathiasag7 Dec 4, 2023
5c0b0d6
changelog updated
mathiasag7 Dec 4, 2023
2f1957f
fix: error in migration files
mathiasag7 Dec 20, 2023
ae01a4c
Merge branch 'jazzband:master' into master
mathiasag7 Mar 8, 2024
1d6f15d
Merge branch 'jazzband:master' into master
mathiasag7 Mar 15, 2024
2ff9292
tests + migration file updated
mathiasag7 Mar 22, 2024
3b8d28c
tests + migration file updated
mathiasag7 Mar 22, 2024
4c6ceed
tests + migration file updated
mathiasag7 Mar 22, 2024
08a2699
tests + migration file updated
mathiasag7 Mar 22, 2024
d35289f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 22, 2024
b2f8124
tests + migration file updated
mathiasag7 Mar 25, 2024
b011b1b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 25, 2024
7fb9e7c
tests + migration file updated
mathiasag7 Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update package log
mathiasag7 committed Sep 7, 2023
commit 7ebfb8562195e5331ab20ef456c1a763fef4e55a
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,12 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele

### Bug Fixes

## 1.5.1 (2023-09-07)

### Bug Fixes

- Fixing error on generate foreign key based on attribute natural key at deserialization of value object

## 1.5.0 (2023-09-06)

### Features
@@ -51,13 +57,15 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele
- Make Read the Docs dependencies all optional

## 1.2.2 (2022-08-13)

### Bug Fixes

- Fixes AttributeError when using CSVFormField [#187](https://github.com/jazzband/django-eav2/issues/187)
- Fixes slug generation for Attribute.name fields longer than 50 characters [#223](https://github.com/jazzband/django-eav2/issues/223)
- Migrates Attribute.slug to django.db.models.SlugField() [#223](https://github.com/jazzband/django-eav2/issues/223)

## 1.2.1 (2022-02-08)

### Bug Fixes

- Fixes FieldError when filtering on foreign keys [#163](https://github.com/jazzband/django-eav2/issues/163)
@@ -88,7 +96,7 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele

- Bumps min python version to `3.6.2`

**Full Changelog**: https://github.com/jazzband/django-eav2/compare/1.0.0...1.1.0
**Full Changelog**: <https://github.com/jazzband/django-eav2/compare/1.0.0...1.1.0>

## 1.0.0 (2021-10-21)

@@ -109,7 +117,7 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele
- Revamps all tooling, including moving to `poetry`, `pytest`, and `black`
- Adds Github Actions and Dependabot

**Full Changelog**: https://github.com/jazzband/django-eav2/compare/0.14.0...1.0.0
**Full Changelog**: <https://github.com/jazzband/django-eav2/compare/0.14.0...1.0.0>

## 0.14.0 (2021-04-23)

@@ -118,6 +126,6 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele
- This release will be the last to support this range of Django versions: 1.11, 2.0, 2.1, 2.2, 3.0. SInce all of their extended support was ended by Django Project.
- From the next release only will be supported 2.2 LTS, 3.1, and 3.2 LTS (eventually 4.x)

**Full Changelog**: https://github.com/jazzband/django-eav2/compare/0.13.0...0.14.0
**Full Changelog**: <https://github.com/jazzband/django-eav2/compare/0.13.0...0.14.0>

(Anything before 0.14.0 was not recorded.)
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
[![Django Version](https://img.shields.io/pypi/djversions/django-eav2.svg?color=green)](https://pypi.org/project/django-eav2/)
[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)

## Django EAV 2 - Entity-Attribute-Value storage for Django
## Django EAV 2 - Entity-Attribute-Value storage for Django with the possibility of changing the pk field and using natural key for serialization

Django EAV 2 is a fork of django-eav (which itself was derived from eav-django).
You can find documentation <a href="https://django-eav2.rtfd.io">here</a>.
@@ -157,7 +157,7 @@ Supplier.objects.filter(eav__city='London')

### References

[1] Exploring Performance Issues for a Clinical Database Organized Using an Entity-Attribute-Value Representation, https://doi.org/10.1136/jamia.2000.0070475 <br>
[2] What is so bad about EAV, anyway?, https://sqlblog.org/2009/11/19/what-is-so-bad-about-eav-anyway <br>
[3] Magento for Developers: Part 7—Advanced ORM: Entity Attribute Value, https://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-7.html <br>
[4] Data Extraction and Ad Hoc Query of an Entity— Attribute— Value Database, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC61332/
[1] Exploring Performance Issues for a Clinical Database Organized Using an Entity-Attribute-Value Representation, <https://doi.org/10.1136/jamia.2000.0070475> <br>
[2] What is so bad about EAV, anyway?, <https://sqlblog.org/2009/11/19/what-is-so-bad-about-eav-anyway> <br>
[3] Magento for Developers: Part 7—Advanced ORM: Entity Attribute Value, <https://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-7.html> <br>
[4] Data Extraction and Ad Hoc Query of an Entity— Attribute— Value Database, <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC61332/>
22 changes: 5 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -16,28 +16,18 @@ include = '\.pyi?$'
[tool.poetry]
name = "django-eav2"
description = "Entity-Attribute-Value storage for Django with the possibility of changing the pk field and using natural key for serialization"
version = "1.5.0"
version = "1.5.1"
license = "GNU Lesser General Public License (LGPL), Version 3"
packages = [
{ include = "eav" }
]
packages = [{ include = "eav" }]


authors = [
"Mauro Lizaur <[email protected]>",
]
authors = ["Mauro Lizaur <[email protected]>"]

readme = "README.md"

repository = "https://github.com/jazzband/django-eav2"

keywords = [
"django",
"django-eav2",
"database",
"eav",
"sql",
]
keywords = ["django", "django-eav2", "database", "eav", "sql"]

classifiers = [
"Development Status :: 3 - Alpha",
@@ -56,9 +46,7 @@ classifiers = [
]

[tool.semantic_release]
version_variable = [
"pyproject.toml:version"
]
version_variable = ["pyproject.toml:version"]
branch = "master"
upload_to_pypi = false
upload_to_release = false