Skip to content
Snippets Groups Projects
Commit b58f7a36 authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

bugfix: added removed urls

parent 6c36c9c2
No related branches found
No related tags found
No related merge requests found
......@@ -63,12 +63,9 @@ class LDPViewSetGenerator(ModelViewSet):
'nested_related_name': related_name
}
nested_detail_url = cls.get_detail_url(nested_lookup_field, base_url)
# return [
# url(base_url+'$', cls.as_view(cls.list_actions, **nested_args), name='{}-{}-list'.format(model_name, nested_field)),
# url(nested_detail_url+'$', cls.as_view(cls.detail_actions, **nested_args), name='{}-{}-detail'.format(model_name, nested_field)),
# ]
return [
url(base_url+'$', cls.as_view(cls.detail_actions, **nested_args), name='{}-{}-detail'.format(model_name, nested_field)),
url(base_url+'$', cls.as_view(cls.list_actions, **nested_args), name='{}-{}-list'.format(model_name, nested_field)),
url(nested_detail_url+'$', cls.as_view(cls.detail_actions, **nested_args), name='{}-{}-detail'.format(model_name, nested_field)),
]
@classonlymethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment