Skip to content

Commit

Permalink
Merge pull request #363 from infoportugal/release/0.12.x
Browse files Browse the repository at this point in the history
Release/0.12.x
  • Loading branch information
DiogoMarques29 authored Jun 22, 2022
2 parents 2df5ec4 + 4370595 commit ff7e9f3
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 67 deletions.
7 changes: 7 additions & 0 deletions docs/releases/0.12.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
=============================================
wagtail-modeltranslation 0.12.0 release notes
=============================================

Changelist:
- dropped support for wagtail < 3.0
- dropped suport for python < 3.7
1 change: 1 addition & 0 deletions docs/releases/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Release notes

0.6.0
0.11.0
0.12.0
153 changes: 91 additions & 62 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.7"
django = ">=3.2"
wagtail = ">=3.0,<3.1"
python = "^3.8"
Django = "^4.0.5"
wagtail = "^3.0.1"
django-modeltranslation = ">=0.17"
bump2version = "^1.0.1"

Expand All @@ -60,6 +60,7 @@ bumpversion = "*"
wheel = "*"

# [tool.poetry.plugins.bumpversion]
autopep8 = "^1.6.0"
# ".rst" = "some_module:SomeClass"
[build-system]
requires = ["poetry_core>=1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def autodetector_decorator(func):
def wrapper(self, from_state, to_state, questioner=None):
# Replace to_state.app_configs.models and to_state.models' version of page with the old one
# so no changes are detected by MigrationAutodetector
from_state_page = from_state.concrete_apps.get_model('wagtailcore', 'page')
from_state_page = from_state.apps.get_model('wagtailcore', 'page')
new_to_state = copy.deepcopy(to_state)
new_to_state.apps.app_configs['wagtailcore'].models['page'] = from_state_page
new_to_state.models['wagtailcore', 'page'] = from_state.models['wagtailcore', 'page']
Expand Down
1 change: 0 additions & 1 deletion wagtail_modeltranslation/patch_wagtailadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,5 +558,4 @@ def patch_wagtail_models():
registered_models.sort(key=compare_class_tree_depth)

for model_class in registered_models:
print(f"* Patching: {model_class}")
WagtailTranslator(model_class)

0 comments on commit ff7e9f3

Please sign in to comment.