7
Commit Graph

59 Commits

Author SHA1 Message Date
477bfb9665 Newer versions of Wagtail provide extra args for listing buttons 2021-07-13 16:40:41 +02:00
ffd839159b Make changes backwards compatible 2020-11-25 12:08:42 +01:00
f3e403bec6 Make compatible with latest Wagtail version (2.11.2) 2020-11-24 09:05:20 +01:00
336ed2317c Merge pull request #198 from ixc/198_delete_variants_of_descendants
Variants are not deleted for page descendants
2019-09-19 09:57:18 +02:00
d7ad1be51f Merge preakholt changes 2019-03-15 11:21:14 +01:00
d775ef57e6 Ensure variants are deleted for page decendants 2019-01-24 16:59:44 +11:00
28266c4500 fix flake error 2019-01-09 16:54:49 +02:00
1c74e6cfb9 Update Wagtail imports to work for 2.0 2018-12-18 13:32:02 +02:00
d15f6c37d3 Return 404 if variant page is accessed directly (#188) 2018-09-25 07:57:06 +02:00
0fd6d4d2e5 Delete variants of a page that is being deleted 2018-07-06 15:11:03 +01:00
7010f5acea Move comment to top of function 2018-05-31 11:02:39 +02:00
d94890848d Add description of logic 2018-05-31 10:26:17 +02:00
f8d226efaf Prevent corrected summary item from counting the root page 2018-05-31 10:22:22 +02:00
4e5454b348 Use Wagtail's logic in the page count in the dash
This adds a check if root page is root page in order to calculate the
count properly the same way as Wagtail does [1].

[1] 5c9ff23e22/wagtail/admin/site_summary.py (L38)
2018-05-30 20:13:04 +01:00
65a46f2bd9 Fix segment model naming for forced_segment and the userbar 2018-05-26 16:37:53 +02:00
8d8975ac36 Merge pull request #126 from wagtail/feature/force-as-segment
adds simple segment forcing for superusers
2018-05-26 16:24:44 +02:00
1c1a7ce1b8 Remove wagtail icon from segment link in user bar 2018-05-26 15:08:17 +02:00
939247c147 Add force as segment to the Wagtail user bar 2018-05-26 14:52:09 +02:00
5536adc3ec Merge branch 'develop' into feature/djangoconf-sprint 2018-05-26 10:48:33 +02:00
6b7a1ed591 Updated requirements and module paths 2018-03-16 11:14:19 +01:00
e3488e87ad Enable and fix lint 2018-01-08 09:08:11 +00:00
b021164309 Cleans imports and created ‘filter variants’ util 2017-06-15 17:01:57 +02:00
6f6d6e3a06 Remove backslashes 2017-06-15 17:01:57 +02:00
fb7ed4936d Small improvements and item fix 2017-06-15 17:01:57 +02:00
80e33a467e Corrects pages item and adds personalisation pages 2017-06-15 17:01:57 +02:00
9c88ec1582 fixes segment adapter add syntax for segment forcing 2017-06-12 11:12:33 +02:00
785d1486e4 adds simple segment forcing for superusers 2017-06-12 07:56:38 +02:00
6e56d8cf4d Forgotten rename (variation->variant) 2017-06-02 15:32:26 +02:00
281086a159 Rename variations to variants 2017-06-02 15:31:46 +02:00
1e885adf83 Simpler origin page check 2017-06-02 15:11:50 +02:00
12853c61e1 Hides all variants in the page explorer 2017-06-02 15:11:50 +02:00
d4ee67b778 Remove unnecessary query 2017-06-02 15:11:37 +02:00
c6e4d9cca8 Adds cool icons. Depends on #123 2017-06-02 15:11:37 +02:00
38aff16044 Adds additional options to the dropdown menu
Allows for quick access to both new and existing variations, as well as creation of new segments.
2017-06-02 15:11:37 +02:00
3ee0645267 Fixes summary icon 2017-06-02 13:18:45 +02:00
6f96f2f172 Add more tests for wagtail_hooks 2017-06-02 11:23:39 +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
c0c3ce19fe Remove a few unused imports 2017-06-01 18:06:41 +02:00
8465e6dcbb Fix serving the variant pages 2017-05-31 21:44:57 +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
d4421eebcb minor cleanup 2017-05-31 17:58:25 +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
4f2dc3a304 Handles both Python 2 & 3, and multiple optimisations & simplifications. 2017-05-31 17:13:33 +02:00
cbc2ec7270 Simplify saving/retrieving user segments 2017-05-31 16:13:30 +02:00
ebef7f8785 refactor and add tests 2017-05-31 15:59:09 +02:00
f693e62bbf rename base-class to reflect mixin nature 2017-05-31 15:59:09 +02:00
4e61ff0d08 remove all references or uses of old PersonalisablePage model 2017-05-31 15:59:09 +02:00
49062d36b4 remove PersonalisablePage model 2017-05-31 15:59:09 +02:00