7

Removed unused index view class overwrite and fixed the index template

This commit is contained in:
Jasper Berghoef
2016-11-18 15:02:51 +01:00
parent 749145c66d
commit 0c4cc4385a
2 changed files with 3 additions and 12 deletions

View File

@ -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