Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added simple support for allow custom_filtering #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metazet
Copy link

@metazet metazet commented Apr 28, 2015

In some cases we need to add custom filtering to our tastypie resources, but without adding to Resource.Meta.filtering. With this PR you can add all custom filtering to Resource.Meta class in format as the following:

custom_filtering = {
    'custom_field': {
        'dataType': 'string',
        'required': False,
        'description': 'Filtering custom field'
    },
}

@fradeve
Copy link
Contributor

fradeve commented Sep 29, 2015

I've been searching for something similar for a while, hope this will get merged soon!
Personally tested on our Tastypie API with 50+ endpoints and 900+ tests, and everything works perfectly!

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants