BurkovBA/django-rest-framework-mongoengine-example

Adding custom api view with HybridRouter fails to list properly in APIRoot view

Isshwarya opened this issue · 0 comments

This line should be

 try:
                        ret[api_view_key] = reverse(
                            api_view_key,  ============> line fixed, this cannot be url_name as thats a variable from the previous for loop.
                            args=args,
                            kwargs=kwargs,
                            request=request,
                            format=kwargs.get('format', None)
                        )