fixes query and migrations
This commit is contained in:
@ -11,6 +11,8 @@ class SegmentMiddleware(object):
|
|||||||
if 'segments' not in request.session:
|
if 'segments' not in request.session:
|
||||||
request.session['segments'] = []
|
request.session['segments'] = []
|
||||||
|
|
||||||
|
segments = Segment.objects.all().filter(status='enabled')
|
||||||
|
|
||||||
chosen_segments = []
|
chosen_segments = []
|
||||||
|
|
||||||
for segment in segments:
|
for segment in segments:
|
||||||
|
16
src/personalisation/migrations/0015_merge_20161109_1100.py
Normal file
16
src/personalisation/migrations/0015_merge_20161109_1100.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.3 on 2016-11-09 11:00
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('personalisation', '0006_abstractbaserule_polymorphic_ctype'),
|
||||||
|
('personalisation', '0014_auto_20161109_1025'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
]
|
Reference in New Issue
Block a user