Created
July 24, 2014 11:11
-
-
Save bogsio/a4ee1f1ee5d9f549b562 to your computer and use it in GitHub Desktop.
TPT3 - Adding icontains filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TodoItemResource(ModelResource): | |
| class Meta: | |
| authentication = SessionAuthentication() | |
| authorization = AuthorizationByList() | |
| queryset = TodoItem.objects.all() | |
| resource_name = 'item' | |
| filtering = { | |
| 'text': ('icontains',) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment