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
Dario Marcelino
8751517403
Adds failing test for descendant URL path update on .save
2017-12-18 17:21:39 +00:00
Dario Marcelino
fc0e803dc5
Patch save() so we ensure set_url_path is called if slug_xx changes
...
Wagtail can only detect changes in slug for current language so we need
to check the others
2017-12-16 11:46:39 +00:00
Dario Marcelino
6a483eae19
Adds failing test for set_url_path
...
If slug for non-current language changes set_url_path is never called
2017-12-16 11:06:57 +00:00
Diogo Marques
ffaa485d83
Merge pull request #144 from dmarcelino/streamfield_fallback
...
Fix StreamField fallback (addresses #143 )
2017-12-14 12:03:26 +00:00
Diogo Marques
bd1dbc6758
Merge branch 'master' into streamfield_fallback
2017-12-14 12:02:52 +00:00
Diogo Marques
53ad48e799
Merge branch 'master' into streamfield_fallback
2017-12-14 12:01:44 +00:00
Diogo Marques
37eec32f7a
Merge pull request #142 from dmarcelino/original_slug
...
#141 : Ensure original slug field is always saved in the same language
2017-12-14 11:53:46 +00:00
Dario Marcelino
1f36b55f0c
#143 : Fixes StreamField fallback behaviour
2017-12-12 20:21:07 +00:00
Dario Marcelino
1e03faf76e
#143 : adds failing tests for StreamField fallback
2017-12-12 20:19:17 +00:00
Dario Marcelino
e91101977e
#141 : documentation for original slug field language changes
2017-12-12 12:26:25 +00:00
Dario Marcelino
7cf94069b6
#141 : patch Slug Field pre_save() to ensure slug value consistency
2017-12-12 12:26:02 +00:00
Dario Marcelino
271bbe513f
#141 Failing tests for original slug field issue
2017-12-12 12:22:25 +00:00
Diogo Marques
dca220cb0c
Merge pull request #135 from WnP/i18n-slugs
...
[fix] i18n slugs required specific page in order to retrieve good url
2017-11-30 16:34:52 +00:00
Diogo Marques
da76ec44a2
Merge pull request #137 from dmarcelino/patch-1
...
#126 , Docs: fix translation.py example
2017-11-28 09:59:12 +00:00
Dário
c114d0d326
#126 , Docs: fix translation.py example
...
Update the imports to reflect latest changes
2017-11-27 19:06:54 +00:00
Steeve Chailloux
dd473f1497
[fix] i18n slugs required specific page in order to retrieve good url path
2017-10-27 15:17:38 +02:00
Alexandre Silva
281e2f7002
Merge pull request #115 from v1kku/master
...
rename handle_noargs to handle in management commands
2017-05-09 12:45:29 +01:00
Alexandre Silva
791a9c003a
Changed validation on _new_route to check if the object is an instance of RoutablePageMixin
2017-05-09 12:44:12 +01:00
Alexandre Silva
5361ae777f
Merge pull request #119 from dwasyl/routing-for-routablepages
...
Added routing for RoutablePages
2017-05-09 12:42:24 +01:00
Alexandre Silva
500d9e7932
Fixed docs
2017-05-08 17:33:52 +01:00
Alexandre Silva
2b9fcc4fe2
Updated version in setup.py
2017-05-08 16:54:06 +01:00
Alexandre Silva
c7f9369155
Updated docs for v0.6.0rc2
2017-05-08 16:52:52 +01:00
Alexandre Silva
024a407cf3
Added RichTextFieldPanel to the default simple panel classes
2017-05-08 15:08:26 +01:00
Alexandre Silva
fe77adfd42
Merge pull request #117 from dwasyl/fix-extra-tabs-children
...
Remove extraneous .children reference
2017-05-08 12:19:36 +01:00
David
2950a8f75b
Added routing for RoutablePages
2017-04-27 23:26:00 -06:00
David
ce969d8581
Remove extraneous children
2017-04-27 23:21:16 -06:00
Victor Munene
b38d6b67a4
rename set_translation_url_paths.Command.handle_noargs to handle
2017-04-25 10:13:17 +03:00
Victor Munene
0c8f54e529
rename update_translation_fields.Command.handle_noargs to handle
2017-04-25 09:42:23 +03:00
Alexandre Silva
e830a104b2
Merge pull request #113 from albertoconnor/patch-1
...
Update docs
2017-04-19 11:12:33 +01:00
albertoconnor
45bd7e2cbd
Update docs
...
Based on 0.6.0rc1
2017-04-18 16:36:36 -04:00
Alexandre Silva
f2a9b647d9
Added setting to define custom simple and composed panels to be patched.
2017-03-10 16:43:19 +00:00
Alexandre Silva
8a8ce5051c
Added code from PR #80 .
2017-03-08 15:01:05 +00:00
Alexandre Silva
240933c531
Auto-population for slug is made using the same behaviour as wagtail (only auto-populated in non-live pages and slug only follows the title field if its value matched the title's value at the time of focus). Fixes #54 .
2017-03-08 12:45:25 +00:00
Alexandre Silva
bb6b266fcf
Added custom handler for page links in RichTextField.
2017-03-08 11:39:25 +00:00
Alexandre Silva
f21bf5a3ad
Fixed version number for pypi.
2017-03-07 14:35:57 +00:00
Alexandre Silva
cb217cd18e
Fixed docs.
2017-03-07 14:20:05 +00:00
Alexandre Silva
e8f969a87e
Merge branch 'master' into release/v0.6
2017-03-07 12:15:43 +00:00
Alexandre Silva
86bf5639e7
Updated documentation.
2017-03-07 11:48:28 +00:00