class Meta: queryset = QuestionProps.objects.all() allowed_methods = ['get', 'post'] resource_name = 'questionprops' include_resource_uri = True authentication = ApiKeyAuthentication() authorization = Authorization() validation = QuestionOwnerValidation() always_return_data = True
class Meta: queryset = Response.objects.all() allowed_methods = ['get', 'post'] fields = ['id', 'order', 'title', 'score'] resource_name = 'response' include_resource_uri = True serializer = PrettyJSONSerializer() authentication = ApiKeyAuthentication() authorization = Authorization() validation = QuestionOwnerValidation() always_return_data = True