-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic personalisation blocks #135
base: master
Are you sure you want to change the base?
Conversation
|
||
from wagtail_personalisation.adapters import get_segment_adapter | ||
from wagtail_personalisation.models import Segment | ||
|
||
|
||
def list_segment_choices(): | ||
"""Get a list of segment choices visible in the admin site when editting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editting -> editing
ee93ad4
to
d4dcd4c
Compare
d4dcd4c
to
90c8c05
Compare
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
=======================================
Coverage 68.47% 68.47%
=======================================
Files 55 55
Lines 2217 2217
=======================================
Hits 1518 1518
Misses 699 699
Continue to review full report at Codecov.
|
f5af8e8
to
a71a703
Compare
@tm-kn can you look at the 2.7 failures, please? |
d7d63ad
to
912b46c
Compare
912b46c
to
1d18a82
Compare
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
=======================================
Coverage 92.83% 92.83%
=======================================
Files 66 66
Lines 2010 2010
=======================================
Hits 1866 1866
Misses 144 144 Continue to review full report at Codecov.
|
Issue #68
Add "visible to everyone" segment setting for
PersonalisedStructBlock
.Add the
render_fields
keyword argument forPersonalisedStructBlock
. Setting of the same name can be also set onMeta
class of the block.StructBlock
'srender()
(as currently, displaying field titles & content or template specified inMeta
).Add a few more default blocks so they work out of the box.
PersonalisedCharBlock
PersonalisedImageChooserBlock
PersonalisedRichTextBlock
PersonalisedTextBlock