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
MajekX
9d044ee8e2
Fix tests for Django 2.1+ (tip) ( #25 )
2018-07-27 13:47:01 +02:00
Iwo Herka
0c8bd2208c
Add Adam to contributors
2018-07-26 09:02:02 +00:00
Iwo Herka
d9dba5703c
Rewrite documentation for modern Sphinx ( #5 )
2018-07-23 16:27:12 +00:00
MajekX
b755c778d6
Fix TravisCI configuration for Tox ( #24 )
2018-07-23 15:55:03 +02:00
Iwo Herka
a652894a81
Fix Travis' tox config
2018-07-20 12:58:48 +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
ab9636a1c5
Add test for invalid form
2018-07-13 12:05:34 +00:00
Iwo Herka
89f67a11ae
Add test for register_eav decorator
2018-07-13 11:59:45 +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
e9e6712cb5
Update README.md
2018-07-11 11:18:07 +00:00
Iwo Herka
92070bfe18
Update README.md
2018-06-29 14:33:06 +02: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
c3621024f8
Update gitignore
2018-06-20 10:52:20 +02:00
Iwo Herka
cd4acd1f9c
Bump version to 0.10.1
2018-06-20 09:43:36 +02:00
Iwo Herka
ccf486cc9c
Update Developement Status
2018-06-20 09:43:18 +02:00
Iwo Herka
5947f4d881
Update README badges
2018-06-15 09:51:00 +02:00
Iwo Herka
1cdd94fb97
Update TravisCI config to use Tox
...
This commit replaces Coveralls config with cmd args. This is in order to
remove PyYAML from TravisCI dependencies, which breaks under
Python3.7-dev.
2018-06-15 09:50:46 +02:00
Iwo Herka
382a026511
Setup tox ( #16 )
2018-06-14 16:15:36 +02:00
Iwo Herka
32dd6ca22f
Remove long description from setup.py
...
This needs to be rewritten for PyPi.
2018-06-14 16:15:36 +02:00
Iwo Herka
4394586afd
Fix data validation
2018-06-14 16:15: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
96ce50c3b7
Update README ( #6 )
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
220b889043
Update setup.py ( #2 )
2018-06-14 16:15:36 +02:00
Siegmeyer of Catarina
f260060b60
Clean tests a bit ( #3 )
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
Iwo Herka
894f7fcb86
Add Codacy badge
2018-06-04 13:09:38 +02:00
Siegmeyer of Catarina
45221e1c88
Add requirements badge
2018-06-04 01:43:38 +02:00
Siegmeyer of Catarina
e52c8d195d
Setup min required Django version to 1.11 LTS
2018-06-04 01:39:34 +02:00
Siegmeyer of Catarina
508c17ef52
Add contributors list
2018-06-03 16:01:47 +02:00
Siegmeyer of Catarina
9bf3dbfb5d
Migrate module docstrings to Google-style format ( #10 ) ( #5 )
2018-06-03 15:42:16 +02:00
Siegmeyer of Catarina
5ac886e75e
Add CodeClimate maintainability badge
2018-06-03 15:14:15 +02:00
Iwo Herka
eb78cd7ee5
Add Coveralls configuration
2018-06-01 17:19:49 +02:00
Iwo Herka
a6f7842330
Simplify requirements
2018-06-01 16:19:51 +02:00
Iwo Herka
a37d0c3ad4
Add basic test config for Travis ( #7 )
2018-06-01 16:16:52 +02:00
Iwo Herka
a4a3511c56
Add docstring for the EavConfig ( #5 )
2018-06-01 14:37:18 +02:00
Iwo Herka
b6e4231f6b
Update README
2018-06-01 14:29:17 +02:00
Siegmeyer of Catarina
e5cd77b075
Sort imports ( #3 )
...
Make import statements PEP 8 compliant.
2018-05-31 03:21:20 +02:00