Django flexible filter conditions

https://badge.fury.io/py/django-flexible-filter-conditions.svg https://travis-ci.org/PetrDlouhy/django-flexible-filter-conditions.svg?branch=master https://codecov.io/gh/PetrDlouhy/django-flexible-filter-conditions/branch/master/graph/badge.svg

Flexible query filter conditions, that can be defined from django-admin and used for segmentation of date (i.e. Profiles).

Documentation

The full documentation is at https://django-flexible-filter-conditions.readthedocs.io.

Quickstart

Install Django flexible filter conditions:

pip install django-flexible-filter_conditions

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'flexible_filter_conditions.apps.FlexibleFilterConditionsConfig',
    ...
)

Add Django flexible filter conditions’s URL patterns:

FLEXIBLE_FILTER_CONDITIONS_FIELD_MAP = {
    'User': ('aklub.models', 'User'),
    'Profile': ('aklub.models', 'Profile'),
    'Payment': ('aklub.models', 'Payment'),
    'User.last_payment': ('aklub.models', 'Payment'),
    'User.userchannels': ('aklub.models', 'DonorPaymentChannel'),
}

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package: