# Field defines a relation with model 'Product', which is either not installed, or is abstract

**URL:** <https://forum.codewithmosh.com/t/field-defines-a-relation-with-model-product-which-is-either-not-installed-or-is-abstract/15545>\
**Category:** Django\
**Created:** [September 30, 2022, 8:15pm UTC](https://forum.codewithmosh.com/t/field-defines-a-relation-with-model-product-which-is-either-not-installed-or-is-abstract/15545 "2022-09-30T20:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aur9](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@aur9](https://forum.codewithmosh.com/u/aur9)\
**Post date:** [September 30, 2022, 8:15pm UTC](https://forum.codewithmosh.com/t/field-defines-a-relation-with-model-product-which-is-either-not-installed-or-is-abstract/15545/1 "2022-09-30T20:15:14Z")

</div>

Hi,

I’m currently on video 10 of the Building a Data Model part of Django Part 1, where Mosh resolves the circular dependency. After doing what Mosh does, and some other things I tried from the internet (wrapping Product in quotes, replacing Product with ‘store.Product’, etc), I am still thrown an error that prevents me from running the local server.

```auto
class Collection(models.Model):
    title = models.CharField(max_length=255)
    featured_product = models.ForeignKey(Product, on_delete=models.SET_NULL, null=True)

class Product(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    price = models.DecimalField(max_digits=6, decimal_places=2)
    inventory = models.IntegerField()
    last_update = models.DateTimeField(auto_now=True)
    collection = models.ForeignKey(Collection, on_delete=models.PROTECT)

    promotions = models.ManyToManyField(Promotion, related_name='Product_promo_set')

```

```auto
store.Collection.featured_product: (fields.E300) Field defines a relation with model 'Product', which is either not installed, or is abstract.
store.Product_promotions: (fields.E336) The model is used as an intermediate model by 'store.Product.promotions', but it does not have a foreign key to 'Product' or 'Promotion'.

```

Sorry if this is a noobie question, but thanks in advance for the help.
