I am using Django 1.3 + Tastypie 0.9.11 , and I have this situation, irrespective to what ModelResource i had filtering options, they just dont seem to work. All i get is this error "The $FieldName field does nto allow filtering.".
class UserProfileResource(ModelResource):
user = fields.ForeignKey(UserResource, 'user')
class Meta:
queryset = UserProfile.objects.all()
resource_name = 'uprofile'
#authentication = ApiKeyAuthentication()
authorization= DjangoAuthorization()
paginator_class = Paginator
list_allowed_methods = ['get', 'post']
detail_allowed_methods = ['get', 'post', 'put', 'delete']
serializer = Serializer(formats=['json'])
filtering = {
"gender": ('exact',),
}