Why Django doesn't see change when I add/remove a field from my models?

I removed a ForeignKey from a model and I guess the migration wasn't applied properly. It was three days ago and others migrations were applied since then.

The problem is that now I'm unable to recreate the same ForeignKey because Django doesn't see the change in models.py when I recreate the field.

What is the best way to solve thiis issue ?

class Account(TimestampedModel):
    name = models.CharField(max_length=50, null=True)


# python manage.py makemigrations
No changes detected

When I recreate the field, it keep saying no change is detected.

class Account(TimestampedModel):
    name = models.CharField(max_length=50, null=True)
    exchange = models.ForeignKey(Exchange, on_delete=models.CASCADE, related_name='account', null=True)  # ForeignKey I cant recreate


# python manage.py makemigrations
No changes detected

I have tried to specify the name of the application when calling makemigrations but it doesn't help.

Back to Top