Alex Bridge
c7eaec1315
Wagtail 3 changes
2022-11-08 14:47:25 +00:00
Alex Bridge
48955675be
Use get_context_data override instead of get_context for Wagtail >= 2.15 ( #230 ). Fix #228
2022-01-28 11:53:57 +00:00
Mike Dingjan
2bee66d0ae
Replace staticfiles with static tag (django removed the staticfiles)
2021-08-12 10:44:02 +02:00
Mike Dingjan
477bfb9665
Newer versions of Wagtail provide extra args for listing buttons
2021-07-13 16:40:41 +02:00
Marcel Hekking
3f16ad686e
Remove obsolete line
2020-11-25 15:54:32 +01:00
Marcel Hekking
ffd839159b
Make changes backwards compatible
2020-11-25 12:08:42 +01:00
Marcel Hekking
f3e403bec6
Make compatible with latest Wagtail version (2.11.2)
2020-11-24 09:05:20 +01:00
Boris Besemer
137b5b411c
Merge pull request #203 from davisnando/master
...
Fix is_authenticated 'bool' object is not callable error
2020-01-24 08:22:06 +01:00
Boris Besemer
6a6c3e8d7b
Merge pull request #202 from wagtail/feature/wagtail-2-6
...
Update test matrix to include new Django and Wagtail versions
2019-09-26 11:45:29 +02:00
Boris Besemer
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
Nando Davis
06569a3cc1
Fix 'bool' object is not callable error
2019-08-27 11:43:39 +02:00
Jasper Berghoef
da6e5127ed
Update test matrix to include new Django and Wagtail versions
2019-08-22 09:36:27 +02:00
Jasper Berghoef
3d054ec585
Add migrations for country field on origincountryrule
2019-08-22 08:28:14 +02:00
Paul J Stevens
69a4514129
update testcode
...
run isort
2019-03-15 12:58:30 +01:00
Paul J Stevens
585cb0b16a
clean out some python2-isms
2019-03-15 11:50:34 +01:00
Paul J Stevens
4ae8a5e60b
postmerge fixes
2019-03-15 11:46:44 +01:00
Paul J Stevens
d7ad1be51f
Merge preakholt changes
2019-03-15 11:21:14 +01:00
Alastair Weakley
bd5b85cedb
Merge branch 'master' into 198_delete_variants_of_descendants
2019-01-25 12:34:58 +11:00
aweakley
956c1bf4f5
Use timezone-aware dates and times in rules ( #197 )
...
* use timezone-aware dates and times re #196
* remove redundant newlines
* Fix flake8 linting errors in python 3.6
2019-01-24 16:27:34 +01:00
Alastair Weakley
d775ef57e6
Ensure variants are deleted for page decendants
2019-01-24 16:59:44 +11:00
Kaitlyn Crawford
86e669e4f4
Add custom js files to segment create view
2019-01-16 12:02:14 +02:00
sewagodimo
650e061f91
assign pages on exclude
2019-01-10 14:47:01 +02:00
sewagodimo
9235932f00
update exclude varient format and add variants to tests
2019-01-10 12:41:53 +02:00
sewagodimo
28266c4500
fix flake error
2019-01-09 16:54:49 +02:00
sewagodimo
875d8302de
exclude variants should return a list when a list if given or a queryset
2019-01-09 16:54:04 +02:00
sewagodimo
4c09ad4ca7
fix flake error W504
2019-01-09 16:52:26 +02:00
Kaitlyn Crawford
d3f4d42d82
Define panel for rules to handle InlinePanel changes
2019-01-02 16:51:56 +02:00
Kaitlyn Crawford
1c74e6cfb9
Update Wagtail imports to work for 2.0
2018-12-18 13:32:02 +02:00
tm-kn
1f464adaa7
Do not generate sitemap entries for variants ( #187 )
2018-09-25 07:57:41 +02:00
tm-kn
d15f6c37d3
Return 404 if variant page is accessed directly ( #188 )
2018-09-25 07:57:06 +02:00
tm-kn
7d679d7111
Add origin country rule ( #190 )
2018-09-25 07:51:25 +02:00
Tomasz Knapik
3ce0aef8d5
Add an option to show a personalised block to everyone
2018-08-06 15:16:36 +01:00
tm-kn
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
Tomasz Knapik
0fd6d4d2e5
Delete variants of a page that is being deleted
2018-07-06 15:11:03 +01:00
Jasper Berghoef
7010f5acea
Move comment to top of function
2018-05-31 11:02:39 +02:00
Jasper Berghoef
d94890848d
Add description of logic
2018-05-31 10:26:17 +02:00
Jasper Berghoef
f8d226efaf
Prevent corrected summary item from counting the root page
2018-05-31 10:22:22 +02:00
Jasper Berghoef
037381f79f
Merge pull request #178 from tm-kn/use-the-same-way-as-wagtail-to-count-pages
...
Use Wagtail's logic in the page count in the dash
2018-05-30 22:26:25 +02:00
Jasper Berghoef
0f5501ceef
Merge pull request #177 from tm-kn/django-get-field-bug
...
Fix bug on visiting a segment page in the admin
2018-05-30 22:25:08 +02:00
Tomasz Knapik
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
Tomasz Knapik
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
Tomasz Knapik
6514bc1763
Fix excluding pages without variant
...
Currently count in the admin dashboard shows "-1" and no pages are
displayed in the explorer.
2018-05-30 19:47:28 +01:00
blurrah
65a46f2bd9
Fix segment model naming for forced_segment and the userbar
2018-05-26 16:37:53 +02:00
Paul J Stevens
f1b62a7546
add missing migration
2018-05-26 16:27:20 +02:00
Boris Besemer
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
Paul J Stevens
0bdb80f25a
improve SessionSegmentAdapter
2018-05-26 16:04:11 +02:00
blurrah
1c1a7ce1b8
Remove wagtail icon from segment link in user bar
2018-05-26 15:08:17 +02:00
blurrah
939247c147
Add force as segment to the Wagtail user bar
2018-05-26 14:52:09 +02:00
Paul J Stevens
12f110d913
remove customer manager again for now
2018-05-26 14:35:53 +02:00
Paul J Stevens
4f3f9a4d40
lint
2018-05-26 12:28:01 +02:00