# Error when Making Migration

**URL:** <https://forum.codewithmosh.com/t/error-when-making-migration/21223>\
**Category:** Django\
**Created:** [July 3, 2023, 8:02am UTC](https://forum.codewithmosh.com/t/error-when-making-migration/21223 "2023-07-03T08:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EisaAlyaqoub](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@EisaAlyaqoub](https://forum.codewithmosh.com/u/EisaAlyaqoub)\
**Post date:** [July 3, 2023, 8:02am UTC](https://forum.codewithmosh.com/t/error-when-making-migration/21223/1 "2023-07-03T08:02:35Z")

</div>

Hello All,

When I finished with all models creation, and want to make the migrations, I faced this error:

**\> tags.TaggedItem.content\_type: (contenttypes.E003) ‘TaggedItem.content\_type’ is not a ForeignKey.**  
**\> HINT: GenericForeignKeys must use a ForeignKey to ‘contenttypes.ContentType’ as the ‘content\_type’ field.**

I imported all modules needed just as Mosh did in the videos.

---

<div class="post-metadata">

**Author:** ![EisaAlyaqoub](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@EisaAlyaqoub](https://forum.codewithmosh.com/u/EisaAlyaqoub)\
**Post date:** [July 4, 2023, 8:37am UTC](https://forum.codewithmosh.com/t/error-when-making-migration/21223/2 "2023-07-04T08:37:55Z")

</div>

solved …thank you you all
