Hi,
I'm new with oscar, and have some experience with django.
I want a marketplace, so the products are tied for each of the vendors.
In INSTALLED_APPS I added:
'marketplace.apps.MarketplaceConfig',
'marketplace.catalogue.apps.CatalogueConfig',
'marketplace.dashboard.catalogue.apps.CatalogueDashboardConfig',
and the new model is:
"""
from django.db import models
from oscar.apps.catalogue.abstract_models import AbstractProduct
from django.contrib.auth.models import User
class Product(AbstractProduct):
vendor = models.ForeignKey(User, on_delete=models.CASCADE, related_name='new-product')
class Meta:
verbose_name = 'New product'
verbose_name_plural = 'New products'
from oscar.apps.catalogue.models import * # noqa
"""
I don't know why do I have this error with the migrations:
"""
django.db.migrations.exceptions.NodeNotFoundError: Migration analytics.0002_auto_20140827_1705 dependencies reference nonexistent parent node ('catalogue', '0001_initial')
"""
I read something strange in the documentation, in:
https://docs.oscarcommerce.com/en/latest/howto/how_to_customise_models.htmlsaid that: "The recommended way to handle migrations is to copy the
migrations directory
from
oscar/apps/catalogue into your new
catalogue app."
so, must I create an app/marketplace/catalogue/migrations and copy all the migrations?, and what happends when oscar updates, isn't there any problems with this copy?