Diogo Marques
6aaa9fbeda
Merge pull request #157 from dmarcelino/remove_pre_save
...
Remove slug .pre_save() patch
2018-01-04 17:11:58 +00:00
Diogo Marques
d6ed53c0fc
Merge pull request #156 from dmarcelino/travis
...
Make experimental build on travis
2018-01-04 17:09:27 +00:00
Dario Marcelino
0bca45dcbb
Docs: add management commands to index
...
[ci skip]
2018-01-04 15:12:32 +00:00
Dário
45c7c9e2c5
Update management commands.rst
...
[ci skip]
2018-01-04 15:09:57 +00:00
Dario Marcelino
487741ecbe
Drop python 3.3 in favor of 3.6
...
Note that Wagtail tests from python 3.4 to 3.6:
9926745262/.travis.yml
2018-01-04 11:38:57 +00:00
Dario Marcelino
787bbf4344
Travis: add the latest versions of wagtail
2018-01-04 11:18:27 +00:00
Dario Marcelino
3b463f7ee7
Remove slug .pre_save() patch since it's no longer relevant
...
Update docs accordingly
2018-01-03 19:01:12 +00:00
Dario Marcelino
8000594114
Add --dependency-links flag to pip install
2018-01-03 17:52:21 +00:00
Dario Marcelino
7a9750cbd7
Please travis by adding latest commit of django-modeltranslation to
...
dependencies
2018-01-03 17:22:35 +00:00
Diogo Marques
238e265ec7
Merge pull request #153 from dmarcelino/fix_makemigrations
...
Fix makemigrations bug when Page has dependencies
2018-01-03 15:05:02 +00:00
Diogo Marques
ff8a7f7afe
Merge pull request #140 from dmarcelino/patch-2
...
Fix update_translation_fields command
2018-01-03 14:34:00 +00:00
Diogo Marques
7f028ffac8
Merge pull request #125 from WnP/fix-RemovedInWagtail113Warning
...
relative_url should accept a 'request' keyword argument.
2018-01-03 12:58:32 +00:00
Diogo Marques
90433d18b8
Merge pull request #123 from rodnsi/master
...
New tag: 'get_available_languages_wmt'.
2018-01-03 12:56:29 +00:00
Dário
fd1cbe2432
Merge pull request #155 from dmarcelino/set_translation_url_paths
...
Remove .specific calls from set_translation_url_paths command
2018-01-03 12:22:21 +00:00
Dario Marcelino
9e2c2358ae
Remove .specific calls from set_translation_url_paths command
2018-01-03 12:04:16 +00:00
Dario Marcelino
066d00b20b
Add (working) test for set_translation_url_paths command
2018-01-02 19:53:41 +00:00
Dario Marcelino
a90d0faf29
update_untranslated_descendants_url_paths: reduce number of DB queries
...
Instead of performing a query for each changed language, aggregate all
conditions into a single one using Q and run a single query per changed
page.
2018-01-02 18:29:53 +00:00
Dario Marcelino
f4d89944f1
update_untranslated_descendants_url_paths: add update_fields to .save()
...
Since we only need to update the 'localized_url_path' and nothing else.
Additional changes to `LocalizedSaveDescriptor` were made to ensure
descendants were updated when they needed to.
2018-01-02 16:12:38 +00:00
Dário
bfb62c0c90
Adds caveat to README
...
[ci skip]
2017-12-28 19:48:15 +00:00
Dario Marcelino
271920d6eb
Fix makemigrations bug detected by @DiogoMarques29 when Page has
...
dependencies
2017-12-28 16:44:23 +00:00
Dário
bd93e06adc
Merge pull request #152 from dmarcelino/translation_options
...
Remove WagtailTranslationOptions and update docs
2017-12-27 19:49:12 +00:00
Dario Marcelino
17bac99fdd
Remove WagtailTranslationOptions and update docs
2017-12-27 19:43:09 +00:00
Dário
b58544400a
Merge pull request #151 from dmarcelino/remove_specific
...
Remove .specific calls to reduce DB queries
2017-12-27 18:26:40 +00:00
Dario Marcelino
127603cd92
Removes .specific calls from clean()
2017-12-27 18:05:43 +00:00
Dario Marcelino
acf20e2533
Adds (working) test for clean
2017-12-27 18:05:17 +00:00
Dario Marcelino
17b2fe375c
Remove model.url and model.get_url_parts() patches
...
since there no need to use .specific anymore
2017-12-27 17:20:48 +00:00
Dario Marcelino
d3cec5590d
Adds (working) test for model.url and model.get_url_parts()
2017-12-27 17:20:08 +00:00
Dario Marcelino
2af22eda36
Remove call to .specific from _new_route() method
2017-12-27 16:19:59 +00:00
Dario Marcelino
e6488400c2
Adds RoutablePage test
2017-12-27 16:19:51 +00:00
Dario Marcelino
a1c90e9e97
Working test for Page.route()
2017-12-26 15:05:48 +00:00
Dario Marcelino
39acb713dc
Refactor PageFactory to be simpler and more explicit
2017-12-26 15:04:51 +00:00
Dario Marcelino
5076788eb4
Please Travis: fix "ImportError: No module named contextlib"
2017-12-23 17:19:02 +00:00
Dario Marcelino
efd47b87e1
Fixes update_descendant_url_paths
...
for when children don't have their translated slugs set up.
2017-12-23 01:04:42 +00:00
Dario Marcelino
8250693208
Adds failing test for updating Page slug with untranslated children
...
Assert set_url_path works correctly when a Page with untranslated
children has its translated slug changed.
2017-12-23 01:02:00 +00:00
Dario Marcelino
2ab997dab5
Adds tag slugurl_trans and drop attempts to patch slugurl
...
- set_language context manager renamed to use_language
- updated docs about tags
2017-12-22 21:58:25 +00:00
Dario Marcelino
4bcd6086e0
Patch slugurl to accept original language slug
...
no matter what is the user's current language
2017-12-22 18:46:57 +00:00
Dario Marcelino
d22fc4c89c
Adds failing test for slugurl tag
2017-12-22 18:42:19 +00:00
Dario Marcelino
252f142493
Adds new Page.move() descriptor to fix children URL paths
2017-12-22 15:57:33 +00:00
Dario Marcelino
93ffbb09ce
Adds failing test for Page.move() within test_set_url_path()
2017-12-22 15:56:16 +00:00
Dario Marcelino
51216693d5
Merge branch 'page_i18n_fields' of
...
https://github.com/dmarcelino/wagtail-modeltranslation.git into
page_i18n_fields
Conflicts:
wagtail_modeltranslation/tests/tests.py
2017-12-22 11:47:27 +00:00
Dario Marcelino
e28c00668a
Gitignore: add GitEye's/Eclipse's project
2017-12-22 11:40:03 +00:00
Dario Marcelino
d3cb322c33
Adds sub-module makemigrations to override django's 'makemigrations'
...
command
New 'makemigrations' is a proxy for 'makemigrations_translation', it's
role is only to override django's own command and skip any
wagtailcore_page migrations caused by translation. Adding this to it's
own submodule makes this override optional for the user. The original
Django 'makemigrations' command is available by running
'makemigrations_original'
2017-12-22 11:40:03 +00:00
Dario Marcelino
333c392dc8
Move Page translation fields to Page table (breaking changes!)
...
- Bumps version to 0.8.0-alpha
- Introduces 'makemigrations_translation' command to avoid generating
wagtailcore_page migrations
- Adds 'sync_page_translation_fields' which mimicks
'sync_translation_fields' but restricts it to Page model
- This change introduces breaking changes and has no migration script to
move from 0.6 to 0.8
- Updates tests
2017-12-22 11:40:03 +00:00
Dario Marcelino
1a656b98da
Adds failing test showing that saved Page fields are not retrieved
...
correctly
See
https://github.com/infoportugal/wagtail-modeltranslation/issues/103#issuecomment-352006610
for more details
2017-12-22 11:25:12 +00:00
Dario Marcelino
3a2c3f9b00
Gitignore: add GitEye's/Eclipse's project
2017-12-21 19:05:20 +00:00
Dario Marcelino
fe8bd7e9a4
Adds sub-module makemigrations to override django's 'makemigrations'
...
command
New 'makemigrations' is a proxy for 'makemigrations_translation', it's
role is only to override django's own command and skip any
wagtailcore_page migrations caused by translation. Adding this to it's
own submodule makes this override optional for the user. The original
Django 'makemigrations' command is available by running
'makemigrations_original'
2017-12-21 19:05:12 +00:00
Dario Marcelino
931ee25931
Move Page translation fields to Page table (breaking changes!)
...
- Bumps version to 0.8.0-alpha
- Introduces 'makemigrations_translation' command to avoid generating
wagtailcore_page migrations
- Adds 'sync_page_translation_fields' which mimicks
'sync_translation_fields' but restricts it to Page model
- This change introduces breaking changes and has no migration script to
move from 0.6 to 0.8
- Updates tests
2017-12-21 18:58:07 +00:00
Diogo Marques
eecab72275
Merge pull request #148 from dmarcelino/child_url_paths
...
Fixes descendant_url_path on page.save()
2017-12-19 14:56:48 +00:00
Diogo Marques
a60d1888cc
Merge pull request #146 from dmarcelino/url_paths
...
Patch save() so we ensure set_url_path is called if slug_xx changes (Fixes #145 )
2017-12-19 14:53:05 +00:00
Dario Marcelino
d10d56a202
Fixes descendant_url_path on .save
...
Uses similar logic as Wagtail's .save() but adjusted for different
languages
2017-12-18 17:22:48 +00:00