Mauro
49ee47c399
Updating translations from ugettext_lazy to gettext_lazy and deprecating djangotip from python <3.8
2021-04-23 12:19:06 -03:00
~lmn
8ecd0e241b
Merge branch 'master' into json-datatype
2021-04-14 10:40:13 -03:00
Mauro
851ca4cc74
Replaces NullBoolean with Boolean ( closes : #56 )
2021-04-04 23:57:52 -03:00
Mauro
39e1ff35f7
Adding a JSON Datatype
2021-04-04 23:53:45 -03:00
Mike Stralek
9983786184
create manage.py; move new field to own migration
2021-01-04 17:41:57 -08:00
Daniel Indictor
715dea0626
Merge pull request #59 from wackerservices/feature/model-specific-attributes
...
New feature: many to many to content type on attribute
2020-11-13 00:41:31 -05:00
Daniel Indictor
71a517d1da
Merge pull request #60 from wackerservices/feature/instance-level-attributes
...
Add instance parameter to config get_attributes
2020-11-13 00:39:49 -05:00
Zach Taylor
9a4c8f3ad3
Add instance parameter to config get_attributes
2020-10-22 15:53:34 -05:00
Zach Taylor
5d8ba99361
Change foreign key to many to many to allow more flexibility
2020-10-21 16:03:20 -05:00
Zach Taylor
aaaa813b9b
Remove verbose_name and add documentation
2020-10-20 15:02:45 -05:00
Zach Taylor
2c5e1e6602
Add entity_ct to Attribute model
2020-10-20 11:28:14 -05:00
Zach Taylor
def1bc5ade
Allow attribute_value to be None if enum type
2020-10-19 14:45:29 -05: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
Iwo Herka
1a0c9d0cc0
Bump version to 0.13.0
2019-06-20 16:18:31 +00: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
Evgeny Pisemsky
27cf385f58
Provide russian translation ( #45 )
2019-02-25 20:04:17 +01:00
Alexander Anikeev
cf8f95dfa7
Fix ordering with custom config ( #44 )
2019-02-01 20:38:41 +01:00
Iwo Herka
08104f8c0e
Bump version to 0.12.0
2018-09-21 11:49:03 +00:00
Siegmeyer
92ba7992d7
Add support for order_by clause to EavQuerySet ( #39 )
2018-09-21 13:47:03 +02: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
Iwo Herka
be0197d5f3
Bump to version 0.11.1
2018-08-01 07:36:22 +00:00
Iwo Herka
d49031c8e6
Bump version to 0.11.0
2018-07-27 14:02:45 +00: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
e0a76f86b2
Rename "enums" attribute on the EnumGroup to "values" ( #20 )
2018-07-27 12:54:05 +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
c1300903f8
Bump patch version
2018-07-13 14:25:20 +00:00
Iwo Herka
8db7c39bbf
Save M2M relations on form save ( #13 )
2018-07-13 14:06:21 +00:00
Iwo Herka
23be8b41a9
Add tests for forms
2018-07-13 11:54:57 +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
dcfd8e4e7e
Validate against illegal assignments ( #17 )
2018-06-21 14:27:04 +02:00
Iwo Herka
6f3329d2ae
Work on code style in models ( #3 )
2018-06-20 15:51:02 +02:00
Iwo Herka
d8251d2646
Remove unused field from attribute
2018-06-20 11:44:07 +02:00
Iwo Herka
cd4acd1f9c
Bump version to 0.10.1
2018-06-20 09:43:36 +02:00
Iwo Herka
df9c4b66fa
Fix Python 2.7 compatibility
2018-06-14 16:15:36 +02:00
Siegmeyer of Catarina
00562c4d88
Configure coverage's ignored files
2018-06-14 16:15:36 +02:00
Siegmeyer of Catarina
9908669496
Bump minor to 0.10.0
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
Iwo Herka
4958bfd04b
Remove Sites framework dependency ( #9 ) ( #15 )
...
This merge does two things:
1. Removes completely dependency on the Sites framework (which was implemented erroneously).
Specifically, site field on Attribute and related constraints. With those changes, attributes are now global. That is, all attributes are visible to all entities. As a result, slug in now unique.
2. Content-type field is used to limit entities that can be assigned an attribute (see get_all_attributes method on Entity). This way attributes with content_type assigned are, for all intended purposes, private to Entity of that content type. The problem is that those attributes are still visible to other entities. Moreover, originally, attributes had non-unique slugs that are unique together with content_type and site. With removal of site (and because content_type is nullable) a situation might exist in which two attributes exist with the same slug/name but one with content_type and one with NULL. Simple solution to all this hassle is to drop private attributes altogether, which is what this pull-request does.
Resolves : #9
Commits:
* Remove sites dependency; fix Attribute uniqueness (#9 )
* Add uniqueness test to attributes
* Remove content_type from Attribute class
* Update runtests
* Remove redudant call
* Fix wrong assertion in attribute test
* Fix string formatting
2018-06-04 17:19:05 +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
a4a3511c56
Add docstring for the EavConfig ( #5 )
2018-06-01 14:37:18 +02:00
Siegmeyer of Catarina
e5cd77b075
Sort imports ( #3 )
...
Make import statements PEP 8 compliant.
2018-05-31 03:21:20 +02:00
Iwo Herka
1813cacf1b
Simplify assignment to __version__
...
This commit removes `get_version` helper which is completely useless and
not used anywhere else, i.e. from now on `__version__` is assigned directly.
As a side-effect, this makes patch number always visible in the
version number. This is correct behavior; there is no reason to hide it
when it equals 0.
Links: https://semver.org/
2018-05-30 17:12:09 +02:00
Iwo Herka
a050eb3504
Remove remaining license notices ( #3 )
2018-05-30 17:04:11 +02:00
Iwo Herka
b99a3c0641
Move license notice to root directory ( #3 )
2018-05-18 13:37:39 +02:00