Skip to content

Instantly share code, notes, and snippets.

@bogsio
Created July 24, 2014 11:11
Show Gist options
  • Select an option

  • Save bogsio/a4ee1f1ee5d9f549b562 to your computer and use it in GitHub Desktop.

Select an option

Save bogsio/a4ee1f1ee5d9f549b562 to your computer and use it in GitHub Desktop.
TPT3 - Adding icontains filtering
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