[Fixed]-Django rest framework- Only see's one view

1👍

Found the solution. As my serializers share the same data model, DRF seems to be getting stuck trying to automatically discover the url naming pattern.

Giving a base_name argument to each of my models solved the issue!

router.register(r'Data', DataViewSet, base_name='Data')
router.register(r'Friends', FriendsViewSet, base_name='Friends')
👤Ycon

Leave a comment