Skip to content

Receiving attribute error viewset has no attribute 'get_extra_actions' #59

@selvania

Description

@selvania

When using the standardized format, I am getting the error that
FileViewset has no attribute 'get_extra_actions'

I have tried routing the view using 'as_view' in the router.register function, but that only receives further issues. Viewset appears as:

`class FileViewset(ObjectMultipleModelAPIView):
querylist = (
{'queryset': UploadedFile.objects.filter(id__in=list(EntryFile.objects.all().values_list('entry_id', flat=True))),
'serializer_class':FileSerializer},
{'queryset': FileLink.objects.all(),
'serializer_class':FileLinkSerializer}
)

#for the router
router.register(r'file', FileViewset, basename='files')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions