django-oscar / django-oscar-api

RESTful JSON API for django-oscar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdminProductSerializer error when trying to add products

Kiragu-Maina opened this issue · comments

django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "admin-product-detail". You may have failed to include the related model in your API, or incorrectly configured the lookup_field attribute on this field.
Anyone who successfully added products to the catalogue using AdminProductSerializer?
image

you have not registered the urls the AdminProductSerializer references. The are lots of tests that prove the serizializers work. If you just want to create products why not just use the shipped admin api view?