3YOURMIND / django-migration-linter

:rocket: Detect backward incompatible migrations for your django project
https://pypi.python.org/pypi/django-migration-linter/
Apache License 2.0
524 stars 57 forks source link

App names incorrect #261

Open pirelle opened 1 year ago

pirelle commented 1 year ago

Hi! In the link below, application name is taken from the migration file path, and then compared with self.migration_loader.disk_migrations which is wrong, since app name can be defined in some_app/apps.py::DefaultConfig::label and can have any name

https://github.com/3YOURMIND/django-migration-linter/blob/3503367f1fcb34e633577cf70df9ab037d1f394c/django_migration_linter/migration_linter.py#L387C42-L387C42

phillipuniverse commented 1 year ago

@pirelle this is the same as #248 and #249 right?

pirelle commented 1 year ago

@pirelle this is the same as #248 and #249 right?

Yes, you are right