38620d916f
Resolves page copy error ( Fixes #159 )
2017-06-02 14:11:49 +02:00
3ee0645267
Fixes summary icon
2017-06-02 13:18:45 +02:00
eda00d624e
Merge pull request #157 from LabD/tomdyson-readme-2
...
Include sandbox admin URL in README
2017-06-02 12:59:27 +02:00
0e24ae17ac
Fixes PersonalisableBlock segment validation
2017-06-02 12:58:09 +02:00
39c31dc81a
Include sandbox admin URL in README
2017-06-02 10:55:31 +01:00
702fa233a9
Fixes line length and adds Middleware code example
2017-06-02 11:52:31 +02:00
7405c34252
Add missing migration for tests.app.pages (fixes build)
2017-06-02 11:26:57 +02:00
6f96f2f172
Add more tests for wagtail_hooks
2017-06-02 11:23:39 +02:00
559d3c5356
Add unittest for serving a regular page
...
See #150
2017-06-02 10:32:41 +02:00
5aa754dd80
Rename PersonalisablePageMixin.personalisable_metadata
...
Use PersonalisablePageMixin.personalisation_metadata instead to mirror
the package name
2017-06-02 10:23:46 +02:00
282baa4787
Add tests for the wagtail_hooks.serve_variaton
2017-06-02 10:19:32 +02:00
35c22cb6af
Use correct filenames for the tests (and split some)
2017-06-02 10:11:46 +02:00
6c5ab9c6ae
Merge HomePage/SpecialPage to ContentPage in the tests
...
No need to create separate models with the same functionality
2017-06-02 09:30:04 +02:00
d92fe13d37
Refactor the test structure
...
This renames the tests.sandbox app to tests.site to clear up some
confusion with the two sandbox app's.
2017-06-02 09:25:51 +02:00
dfb364b7fc
Adds additional segment to avoid confusion
...
As the dropdown checks if a page has been segmented, and disables when there are no segments available
2017-06-02 07:43:56 +02:00
15a0276041
Update import sorting and newlines
2017-06-01 18:06:41 +02:00
c0c3ce19fe
Remove a few unused imports
2017-06-01 18:06:41 +02:00
e0fffb70b7
Remove redefinition of `class Meta
` warning
2017-06-01 18:06:41 +02:00
7f2882ce0e
Adds sandbox example data for personalisation
2017-06-01 16:57:40 +02:00
a629bfc862
Enables rich text for the sanbox home page
2017-06-01 16:23:11 +02:00
e3ceecfa7d
Adds a default value to the homepage text content
...
Ensures the migration prefills the RichTextField, wich in turn prevents validation errors when copying the page for personalisation. Fixes #154 .
2017-06-01 16:06:27 +02:00
0f79cf1d15
Revert "Remove manage.py in the root"
...
This reverts commit dda0bc720e
.
2017-06-01 13:55:39 +02:00
29001fac8e
Remove custom wagtail page form
...
THe older page form allowed to change segment settings inline but since
support for this was temporarily removed in an earlier commit we can
clean this up too
2017-06-01 13:51:13 +02:00
dda0bc720e
Remove manage.py in the root
...
This should not be here since it isn't a runnable project
2017-06-01 13:49:28 +02:00
5beef1b27c
New icon for the segments menu item ( #118 )
...
New icon for the segments menu item
2017-06-01 08:48:34 +02:00
8465e6dcbb
Fix serving the variant pages
2017-05-31 21:44:57 +02:00
cf8101156c
Extend the sandbox home to show text content
2017-05-31 21:44:50 +02:00
7076973fc8
Refactor personalisable pages
...
Instead of working with django model mixins it now uses a separate
model entity to keep track of the personalized pages (metadata).
The current downside of this approach is that the segment of an existing
variant is no longer easily adjustable for now.
2017-05-31 21:31:40 +02:00
c2735807b4
Adds ‘Create new segment’ option to dropdown
2017-05-31 20:02:46 +02:00
2651eb0e3c
Add related_name to PersonalisablePageMixin
2017-05-31 18:25:34 +02:00
18838b2e8c
Revert "Fix migrations ( #151 )"
...
This reverts commit d35a7fee57
.
2017-05-31 18:21:57 +02:00
763a67e2d4
Switch mixin ordering
2017-05-31 18:12:19 +02:00
d35a7fee57
Fix migrations ( #151 )
2017-05-31 18:09:50 +02:00
c100dc603c
fix regression
2017-05-31 18:01:19 +02:00
d4421eebcb
minor cleanup
2017-05-31 17:58:25 +02:00
fea3bc8b8e
Updated commons.js.map
2017-05-31 17:56:14 +02:00
38a18f80a4
Merge pull request #146 from LabD/simplifications+optimisations
...
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:50:56 +02:00
85613db363
Merge branch 'simplifications+optimisations' of github.com:LabD/wagtail-personalisation into simplifications+optimisations
2017-05-31 17:43:18 +02:00
5fbfb82480
Switches back to absolute wagtail_personalisation imports.
2017-05-31 17:41:12 +02:00
f88722c827
Further simplifications.
2017-05-31 17:38:51 +02:00
46ad32236c
Merge branch 'master' into simplifications+optimisations
2017-05-31 17:21:07 +02:00
e6fac5f7fb
Fix templatetag tests
2017-05-31 17:19:24 +02:00
82f2dd460e
adds tests for templatetag
2017-05-31 17:19:24 +02:00
4f2dc3a304
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:13:33 +02:00
8905f471ee
adds tx config file
2017-05-31 17:10:58 +02:00
6587d0fd56
Merge pull request #96 from LabD/feature/translation-support
...
Fixes a few translation strings and adds translation files
2017-05-31 16:58:50 +02:00
4e221b6666
Update README.rst
2017-05-31 16:52:02 +02:00
99d2e4a347
support multiple uses of the mixin class ( #140 )
2017-05-31 16:50:56 +02:00
4deaaa985f
Redirect to existing variant if present
2017-05-31 16:39:03 +02:00
63d5de9803
Optimize query for the segment visits
2017-05-31 16:37:10 +02:00