Fabrizio Scandola

Results 4 comments of Fabrizio Scandola

I think this happens due to [changes to AutoField](https://docs.djangoproject.com/en/4.1/releases/4.1/#models) in Django 4.1. I was able to solve this issue simply by deleting existing migrations and regenerating them. I see there...

> > I think this happens due to [changes to AutoField](https://docs.djangoproject.com/en/4.1/releases/4.1/#models) in Django 4.1. I was able to solve this issue simply by deleting existing migrations and regenerating them. >...

I can confirm that this release of Django fixes the problem for my project. https://docs.djangoproject.com/en/4.1/releases/4.1.1/

I don't think there is the need to remove the id field, re-running migrations should work fine under Django 4.1.1. But make sure to unapply the ones generated before updating...