4ae8a5e60b
postmerge fixes
2019-03-15 11:46:44 +01:00
d7ad1be51f
Merge preakholt changes
2019-03-15 11:21:14 +01:00
d3f4d42d82
Define panel for rules to handle InlinePanel changes
2019-01-02 16:51:56 +02:00
1c74e6cfb9
Update Wagtail imports to work for 2.0
2018-12-18 13:32:02 +02:00
1f464adaa7
Do not generate sitemap entries for variants ( #187 )
2018-09-25 07:57:41 +02:00
a47803eca5
Delete related variants when deleting the segment ( #183 )
...
* Delete related variants when deleting the segment
Closes #155
* Fix typo
* Fix migration ordering
* Split metadata migrations
2018-07-19 12:59:46 +02:00
0fd6d4d2e5
Delete variants of a page that is being deleted
2018-07-06 15:11:03 +01:00
7e9dd8624b
Fix bug on visiting a segment page in the admin
...
Wagtail's InlinePanel's relies on
django.db.models.options.Options.get_field -
bcf6b6da77/wagtail/admin/edit_handlers.py (L688)
which seems to have a bug of using related_query_name rather than
related_name naming and therefore trying to edit segment always
fails - https://code.djangoproject.com/ticket/29458 . The bug has not
yet been confirmed by others but it's impossible to edit segments.
Therefore this change deletes related_query_name from relations from
rules to the Segment model.
2018-05-30 20:00:53 +01:00
12f110d913
remove customer manager again for now
2018-05-26 14:35:53 +02:00
8a151e3bab
python2 cleanups
2018-05-26 12:06:35 +02:00
bb34bddaf4
add custom model manager
2018-05-26 12:01:26 +02:00
5536adc3ec
Merge branch 'develop' into feature/djangoconf-sprint
2018-05-26 10:48:33 +02:00
62d258fd9e
fixes wagtail2 compatibility
...
return QuerySets instead of lists
2018-03-17 11:26:56 +01:00
6b7a1ed591
Updated requirements and module paths
2018-03-16 11:14:19 +01:00
3162191a16
Add field to segment to store excluded users
2018-02-09 12:32:42 +02:00
6f97c76958
Add method to randomise matching sessions into the segment
2018-02-05 12:18:22 +02:00
ae97118c3f
Store randomisation percentage on segment model
2018-02-02 10:13:18 +02:00
caf73aa43c
Add matched_users_count field to segments
2018-01-25 11:12:46 +02:00
e3488e87ad
Enable and fix lint
2018-01-08 09:08:11 +00:00
1f4a4536ab
Make the static elements tracked users only
...
We cannot track anonymous users as the session expires after 10 minutes of
inactivity. This also avoids an issue where there is an error when the user's
session has expired and they navigate a page
2017-11-01 16:43:22 +00:00
bc0b69fde5
Hide and show the count input as required
2017-10-26 11:47:28 +01:00
7cf22d05f6
Tidy up the logic checks and remove the frozen property
2017-10-26 10:55:13 +01:00
a116b14d57
Update to use the save method on the form to populate the segments
2017-10-23 15:46:34 +01:00
44cc95617e
Use a form to clean the instance
2017-10-23 15:00:31 +01:00
c6ff2801c5
Update to use a post_init signal to populate the segment
2017-10-20 17:33:47 +01:00
0d2834a55f
Update the help text migration
2017-10-20 17:17:31 +01:00
ff236a095d
Improve the clarity of the help text
2017-10-20 12:18:29 +01:00
ef20580334
Notify users to static compatible rules and update docs
2017-10-20 12:09:25 +01:00
cf41be4b76
Add clean method to ensure mixed static segments are valid
2017-10-20 10:57:19 +01:00
f339879907
Ensure that mixed static and dynamic segments are not populated at runtime
2017-10-20 09:53:18 +01:00
675d219f1f
Add the logic for static segments
2017-10-17 16:57:07 +01:00
80e33a467e
Corrects pages item and adds personalisation pages
2017-06-15 17:01:57 +02:00
281086a159
Rename variations to variants
2017-06-02 15:31:46 +02:00
aafc8c4ed5
Simpler queries
2017-06-02 15:10:54 +02:00
f21c423b1c
Updates functions for new mixin
2017-06-02 15:10:54 +02:00
7e24485aaf
Adds comments to segment functions
2017-06-02 15:10:54 +02:00
12ae3fa173
Uses the Mixin for page lookups
2017-06-02 15:10:54 +02:00
961a58505a
Adds variant count
2017-06-02 15:10:54 +02:00
cb03a36ba2
Work in progress
2017-06-02 15:10:54 +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
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
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
2651eb0e3c
Add related_name to PersonalisablePageMixin
2017-05-31 18:25:34 +02:00
c100dc603c
fix regression
2017-05-31 18:01:19 +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
4f2dc3a304
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:13:33 +02:00