Django EAV 2 - EAV storage for modern Django
Find a file
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
docs More spelling corrections 2010-09-29 13:25:41 +03:00
eav Remove Sites framework dependency (#9) (#15) 2018-06-04 17:19:05 +02:00
tests Remove Sites framework dependency (#9) (#15) 2018-06-04 17:19:05 +02:00
.coveralls.yml Add Coveralls configuration 2018-06-01 17:19:49 +02:00
.gitignore Update gitignore 2018-05-18 13:37:53 +02:00
.travis.yml Add Coveralls configuration 2018-06-01 17:19:49 +02:00
CONTRIBUTORS.md Add contributors list 2018-06-03 16:01:47 +02:00
LICENSE Move license notice to root directory (#3) 2018-05-18 13:37:39 +02:00
README.md Add Codacy badge 2018-06-04 13:09:38 +02:00
requirements.txt Setup min required Django version to 1.11 LTS 2018-06-04 01:39:34 +02:00
runtests Remove Sites framework dependency (#9) (#15) 2018-06-04 17:19:05 +02:00
setup.py Remove remaining license notices (#3) 2018-05-30 17:04:11 +02:00

Build Status Coverage Status Codacy Badge Maintainability Requirements Status

Django EAV 2 - Entity-Attribute-Value storage for Django

Introduction

Django EAV 2 is a fork of django-eav (which itself was derived from eav-django). This project aims to:

  • add Python 3 support
  • add Django 1.11 and 2.0 support
  • modernize and clean-up the codebase
  • drop Django <1.11 dependencies
  • remove dependency on Sites framework
  • fix unresolved issues
  • update documentation (Sphinx + ReadTheDocs)
  • create exhaustive (and automated) tests
  • add new features

(For now) our progress can be tracked through issues. Feel free to join the discussion.