1👍
obviously the migration does not execute correctly.
You have a field name grn and in parallel an app name grn that you use in the foreign key:
grn = models.ForeignKey("grn.GRN", on_delete=models.CASCADE)
it is just a guess but maybe that causes a problem in the migration execution. I would try and change field name.
0👍
I see you have multiple dependencies for the migration you are trying to make.
Multiple dependencies can be one of the reasons for the generation of the error you are facing, in this case you can either try to make multiple different migrations each with just one dependency and then run python manage.py makemigrations
Even I recently faced an error where it said that the table I am trying to migrate already exists, but I was unable to find it, so I tried to fake migrate it and then it did migrate.
Please let me know if this helps or we can try finding some other way out.
- [Answered ]-Unknown column on a Django fetched list
- [Answered ]-Can a older version of django project work on higher version?
- [Answered ]-Django ModelForm isn`t saving data
- [Answered ]-How to put a hidden fields in a formset and instantiate this value?