Skip to main content

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

Project description

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:

History

0.2.0 (2020-01-21)

  • Added blank paremeter value

  • Added isnull filter

0.1.0 (2020-01-14)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-flexible-filter-conditions-0.2.0.tar.gz (29.0 kB view details)

Uploaded Source

File details

Details for the file django-flexible-filter-conditions-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-flexible-filter-conditions-0.2.0.tar.gz
Algorithm Hash digest
SHA256 619e09f8c335abc4295960c7b503ea773a4a29349fcd9a067bff95f98c937aab
MD5 70e05ae41c3d7b3aa95dcc7998e6078b
BLAKE2b-256 aff6ff34837f7d076c9456f9ea6e3db53fa7f0250eb0a20ca27cb3d5697c433d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page