# Makemigration with django4.0.6 and python3.10.5 doesn't work

**URL:** <https://forum.djangoproject.com/t/makemigration-with-django4-0-6-and-python3-10-5-doesnt-work/14951>\
**Category:** Mystery Errors\
**Created:** [July 22, 2022, 8:35am UTC](https://forum.djangoproject.com/t/makemigration-with-django4-0-6-and-python3-10-5-doesnt-work/14951 "2022-07-22T08:35:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adamspd](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamspd/32/6233_2.png) [@adamspd](https://forum.djangoproject.com/u/adamspd)\
**Post date:** [July 22, 2022, 12:36pm UTC](https://forum.djangoproject.com/t/makemigration-with-django4-0-6-and-python3-10-5-doesnt-work/14951/3 "2022-07-22T12:36:18Z")

</div>

Yes, I used class-based view. When I commented out every bit of code that could reference Category and run makemigrations again, it works, thanks to your advice. Does that mean there’s something wrong with it and I need to change my class-based view to a function-based view?

---

_[View the full topic](https://forum.djangoproject.com/t/makemigration-with-django4-0-6-and-python3-10-5-doesnt-work/14951)._
