7

Refactored segment model. Implemented 'enable' and 'disable' in overview

This commit is contained in:
Jasper Berghoef
2016-11-08 17:32:27 +01:00
parent bd188edb8d
commit c7a8119ec9
8 changed files with 77 additions and 8 deletions

View File

@ -8,7 +8,7 @@ class SegmentMiddleware(object):
self.get_response = get_response
def __call__(self, request):
segments = Segment.objects.all().filter(status="live")
segments = Segment.objects.all().filter(status="enabled")
chosen_segments = []