django-oscar / django-oscar-api

RESTful JSON API for django-oscar
Other
369 stars 160 forks source link

AdminProductSerializer error when trying to add products #313

Closed Kiragu-Maina closed 1 year ago

Kiragu-Maina commented 1 year ago

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

specialunderwear commented 1 year ago

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?