class Meta: queryset = CNAME.objects.all() fields = CNAME.get_api_fields() + ['domain', 'views'] authorization = Authorization() allowed_methods = ['get', 'post', 'patch'] validation = FormValidation(form_class=CNAMEForm)
class Meta: always_return_data = True queryset = CNAME.objects.all() fields = CNAME.get_api_fields() + ['views'] authorization = Authorization() allowed_methods = allowed_methods