-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify translatable models to use a shared Mixin #257
Simplify translatable models to use a shared Mixin #257
Conversation
…to 250-Create-a-mixin-class-for-Translatable-Django-models
for more information, see https://pre-commit.ci
…' of https://github.com/BesLogic/releaf-canopeum into 250-Create-a-mixin-class-for-Translatable-Django-models
] | ||
|
||
operations = [ | ||
migrations.AlterField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migration seems to only be good for if the db is empty, is it ok? Since FK won't be found in the other table unless we add them first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah probably better off squashing the migrations again to get devs to regenerate the DB (we won't be able to do that once we have real data on prod, but for now it's an easy shortcut)
…to 250-Create-a-mixin-class-for-Translatable-Django-models
…' of https://github.com/BesLogic/releaf-canopeum into 250-Create-a-mixin-class-for-Translatable-Django-models
for more information, see https://pre-commit.ci
Based on #256 to ensure no accidental DB changes, merge that one firstDonePlease review/test carefully
Also based on discussions in: https://teams.microsoft.com/l/message/19:[email protected]/1727806176316?tenantId=cd34c2c6-a4f8-4af1-bdd5-497e97626cae&groupId=167b0d82-f8ec-429e-944f-45e9c370f2e3&parentMessageId=1727806102415&teamName=Beslogic%20-%20ARBRES%20Philanthropy&channelName=Pull%20Requests&createdTime=1727806176316
Original question: