diff --git a/src/personalisation/templates/modeladmin/personalisation/segment/index.html b/src/personalisation/templates/modeladmin/personalisation/segment/index.html
index e87bfd7..0c26468 100644
--- a/src/personalisation/templates/modeladmin/personalisation/segment/index.html
+++ b/src/personalisation/templates/modeladmin/personalisation/segment/index.html
@@ -36,21 +36,21 @@
- {% for rule in segment.time_rules.all %}
+ {% for rule in segment.personalisation_timerule_related.all %}
-
These users visit between
{{ rule.start_time }} and {{ rule.end_time }}
{% endfor %}
- {% for rule in segment.referral_rules.all %}
+ {% for rule in segment.personalisation_referralrule_related.all %}
-
These visits originate from
{{ rule.regex_string }}
{% endfor %}
- {% for rule in segment.visit_count_rules.all %}
+ {% for rule in segment.personalisation_visitcountrule_related.all %}
-
These users visited {{ rule.counted_page }}
{{ rule.get_operator_display }} {{ rule.count }} times
diff --git a/src/personalisation/wagtail_hooks.py b/src/personalisation/wagtail_hooks.py
index ec53309..8692afc 100644
--- a/src/personalisation/wagtail_hooks.py
+++ b/src/personalisation/wagtail_hooks.py
@@ -22,15 +22,6 @@ def register_admin_urls():
]
-class SegmentIndexView(IndexView):
- def get_context_data(self, **kwargs):
- context = {
- 'additional_forms': (TimeRuleForm, ReferralRuleForm, VisitCountRuleForm),
- }
- context.update(kwargs)
- return super(SegmentIndexView, self).get_context_data(**context)
-
-
class SegmentModelAdmin(ModelAdmin):
"""The base model for the Segments administration interface."""
model = Segment