[Fixed]-Django-Rest-Framework Relationships & Hyperlinked API issues

39👍

You are calling format_suffix_patterns twice, so Django has no idea how to parse the URL because there are two format groups.

You shouldn’t need the first call, as the second call takes care of it for you (and allows for TokenAuthentication to still have the suffixes).

-1👍

Atleast change router.DefaultRouter() to router.SimpleRouter() in urls.py file

Leave a comment