Skip to content

Conversation

AyushDharDubey
Copy link
Collaborator

@AyushDharDubey AyushDharDubey commented Aug 29, 2025

Closes #52

The direct import of

from mainapp.models import Model

was fetching the latest definition of Model, whereas at the point of migration 0003, the Model definition was different.

This PR replaces direct model import with apps.get_model registry retrieval to get the historical version of the model at that point in the migration chain.

@AyushDharDubey
Copy link
Collaborator Author

Tested locally. Verified that migrations work as expected now.

@lonvia lonvia merged commit e798c46 into fossgis:main Aug 29, 2025
1 check passed
@AyushDharDubey AyushDharDubey deleted the fix/issue_52-import-model-using-application-registry-api branch August 29, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration fails
2 participants