9
class LinguistResource(ModelResource):
class Meta:
model = Linguist
queryset = Linguist.objects.all()
resource_name = 'linguists_by_language'
filtering = {
"language": ('exact',),
}
是否可以使「語言」過濾器是強制性的?如何在tastypie中強制使用某些過濾器?
我的目標是,如果提高錯誤GET參數缺少關鍵的「語言」