Skip to content

Use dynamic settings in migrations to match model - #217

Merged
brosner merged 1 commit into
pinax:masterfrom
jpotterm:migration_dynamic_language_settings
Jul 21, 2016
Merged

Use dynamic settings in migrations to match model#217
brosner merged 1 commit into
pinax:masterfrom
jpotterm:migration_dynamic_language_settings

Conversation

@jpotterm

Copy link
Copy Markdown
Contributor

Currently, if the user changes his ACCOUNT_LANGUAGES setting the Django migration autodetector will create new migrations inside of django-user-accounts because the value of Account.language.choices has changed. This pull request fixes that by also referencing settings within the migration.

This seems to be the best practice and is used by django-cms migrations and discussed in a Django ticket.

…Django migration autodetector from making new migrations when a user changes settings.
@coveralls

coveralls commented May 10, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 68.124% when pulling fb82407 on jpotterm:migration_dynamic_language_settings into ca45e17 on pinax:master.

@brosner
brosner merged commit e0aa538 into pinax:master Jul 21, 2016
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.

3 participants