Compare commits
4 Commits
0.12.0
...
feature/mo
Author | SHA1 | Date | |
---|---|---|---|
4bbac1d542 | |||
d9ef74c8f2 | |||
1e69d929aa | |||
a178a8b533 |
4
CHANGES
4
CHANGES
@ -1,3 +1,7 @@
|
|||||||
|
0.12.0
|
||||||
|
==================
|
||||||
|
- Fix Django version classifier in setup.py
|
||||||
|
|
||||||
0.12.0
|
0.12.0
|
||||||
==================
|
==================
|
||||||
- Merged forks of Torchbox and Praekelt
|
- Merged forks of Torchbox and Praekelt
|
||||||
|
@ -62,10 +62,10 @@ author = 'Lab Digital BV'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.12.0'
|
version = '0.12.1'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.12.0'
|
release = '0.12.1'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.12.0
|
current_version = 0.12.1
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = {new_version}
|
tag_name = {new_version}
|
||||||
|
4
setup.py
4
setup.py
@ -35,7 +35,7 @@ with open('README.rst') as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='wagtail-personalisation',
|
name='wagtail-personalisation',
|
||||||
version='0.12.0',
|
version='0.12.1',
|
||||||
description='A Wagtail add-on for showing personalized content',
|
description='A Wagtail add-on for showing personalized content',
|
||||||
author='Lab Digital BV and others',
|
author='Lab Digital BV and others',
|
||||||
author_email='opensource@labdigital.nl',
|
author_email='opensource@labdigital.nl',
|
||||||
@ -60,7 +60,7 @@ setup(
|
|||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Framework :: Django',
|
'Framework :: Django',
|
||||||
'Framework :: Django :: 2',
|
'Framework :: Django :: 2.0',
|
||||||
'Topic :: Internet :: WWW/HTTP :: Site Management',
|
'Topic :: Internet :: WWW/HTTP :: Site Management',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -196,8 +196,7 @@ class SessionSegmentsAdapter(BaseSegmentsAdapter):
|
|||||||
for segment in enabled_segments:
|
for segment in enabled_segments:
|
||||||
if segment.is_static and segment.static_users.filter(id=self.request.user.id).exists():
|
if segment.is_static and segment.static_users.filter(id=self.request.user.id).exists():
|
||||||
additional_segments.append(segment)
|
additional_segments.append(segment)
|
||||||
elif (segment.excluded_users.filter(id=self.request.user.id).exists() or
|
elif (segment.excluded_users.filter(id=self.request.user.id).exists() or segment in excluded_segments):
|
||||||
segment in excluded_segments):
|
|
||||||
continue
|
continue
|
||||||
elif not segment.is_static or not segment.is_full:
|
elif not segment.is_static or not segment.is_full:
|
||||||
segment_rules = []
|
segment_rules = []
|
||||||
|
@ -1,17 +1,6 @@
|
|||||||
{% extends "modeladmin/index.html" %}
|
{% extends "modeladmin/index.html" %}
|
||||||
{% load i18n l10n staticfiles modeladmin_tags %}
|
{% load i18n l10n staticfiles modeladmin_tags %}
|
||||||
|
|
||||||
{% block titletag %}{{ view.get_meta_title }}{% endblock %}
|
|
||||||
|
|
||||||
{% block css %}
|
|
||||||
{{ block.super }}
|
|
||||||
{{ view.media.css }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_js %}
|
|
||||||
{{ view.media.js }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<header class="nice-padding hasform">
|
<header class="nice-padding hasform">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% extends "modeladmin/wagtail_personalisation/segment/base.html" %}
|
{% extends "modeladmin/wagtail_personalisation/segment/base.html" %}
|
||||||
{% load i18n l10n staticfiles modeladmin_tags wagtail_personalisation_filters %}
|
{% load i18n l10n modeladmin_tags wagtail_personalisation_filters %}
|
||||||
|
|
||||||
{% block toggle_view %}to List {% endblock%}
|
{% block toggle_view %}to List {% endblock%}
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{% extends "modeladmin/wagtail_personalisation/segment/base.html" %}
|
{% extends "modeladmin/wagtail_personalisation/segment/base.html" %}
|
||||||
{% load i18n l10n staticfiles modeladmin_tags wagtail_personalisation_filters %}
|
|
||||||
|
|
||||||
{% block toggle_view %}to Dashboard {% endblock%}
|
{% block toggle_view %}to Dashboard {% endblock%}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user