Commit graph

997 commits

Author SHA1 Message Date
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
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
e55a937b35 Update gitignore 2018-05-18 13:37:53 +02:00
Iwo Herka
b99a3c0641 Move license notice to root directory (#3) 2018-05-18 13:37:39 +02:00
Iwo Herka
2b6f470fa7
Add Q-expr rewriter/fix relational algebra (#1)
* Add debug Q-expr print function

* Change old __unicode__ methods to __str__ format

* Move __unicode__ methods to __str__

* Rewrite AND Q-expressions to safe form

* Make Q-expr debug print method use nicer format

* Document rewrite_q_expr function

* Rewrite/improve queries' test

* Document some more code

* Reorganize and document queryset module

* Add more tests for queries

* Use generic relation attribute instead instead of 'eav_values'

* Update docstring

* Fix a typo

* Move up a variable

* Rename a function

* Check if 'in' filter rhs is not a QuerySet

* Add newline to the end of file

* Fix typo; tweak docstring
2018-05-18 13:18:24 +02:00
Iwo Herka
bcd129a03d Move relational operators from EntityManager to EavQuerySet; allow for chaining 2018-04-26 13:29:57 +02:00
Iwo Herka
342fee006a Remove Vim directives 2018-04-06 16:53:32 +02:00
Iwo Herka
841b3b6836 Fix manager detachment 2018-04-06 16:27:18 +02:00
Iwo Herka
813f349683 Remove lost print 2018-04-06 16:24:34 +02:00
Iwo Herka
8131da4389 Fix misc_models test 2018-04-06 14:45:27 +02:00
Iwo Herka
80975ef3ee Update README 2018-04-06 14:31:00 +02:00
Iwo Herka
73c97dfe5f Update runtests; allow to run tests selectively 2018-04-06 14:25:29 +02:00
Iwo Herka
17c8d84295 Make tests runnable with Python 3 2018-04-06 13:59:51 +02:00
Iwo Herka
2f4d121b4d Initialize local requirements 2018-04-06 13:59:18 +02:00
Iwo Herka
d4946345fd Fix file extension in setup.py 2018-04-06 13:58:18 +02:00
Iwo Herka
6a3e88bfc6 Update README 2018-03-27 17:57:21 +02:00
Iwo Herka
f13cce9dcd Update .gitignore for Python and Vim 2018-03-27 17:30:09 +02:00
Iwo Herka
886e9d3b41 Packages names in setup.py. 2017-09-05 12:14:07 +02:00
Iwo Herka
7d1aca31b1 Test fixes + run script. 2017-09-05 12:01:20 +02:00
Iwo Herka
26940c28ea Properly merge field lookups (https://github.com/mvpdev/django-eav/issues/43). 2017-09-04 15:32:21 +02:00
Iwo Herka
47c7e81b7b Proper manager (re)attachement. 2017-09-04 14:35:35 +02:00
Iwo Herka
57252d09d0 Remove default 'objects' manager when appending EntityManager. 2017-09-04 13:06:16 +02:00
JP White
ac6dcc80c3 Merge pull request #33 from jpwhite3/master
Adding pre-reqs and registration decorator. Resolves issues #23 and #39
2017-01-26 20:46:59 -05:00
dorey
e046c54a86 Merge pull request #40 from Sahloul/master
Include migrations
2016-11-02 13:52:19 -07:00