Search code examples
pythondjangodjango-oscar

How to register a new Model in Django-Oscar Dashboard?


I forked catalogue app and added a new model in the new app's models.py

class BundleProductClass(Product):
    products = models.ManyToManyField(Product, related_name="bundle_products")

    class Meta:
        verbose_name = 'Bundle Product'

In admin.py registered the new model admin.site.register(BundleProductClass)

I can see the new model in /admin url but in /dashboard it is not registered. What do I have to do to register it in dashboard view?


Solution

  • The Oscar dashboard is not linked to the Django admin.

    If you want to manage a model through the Oscar dashboard, you have to create your own views and add them to the dashboard navigation.