def keys(self): combos = get_unique_combinations(self.domain, place_types=self.place_types, place=self.selected_fixture()) selected_demo_type = self.request.GET.get('demo_type', "") for c in combos: if self.selected_dt: if self.selected_dt == '_all': for dt in DEMO_TYPES: yield [c[pt] for pt in self.place_types] + [dt] else: yield [c[pt] for pt in self.place_types] + [selected_demo_type] else: yield [c[pt] for pt in self.place_types]
def keys(self): combos = get_unique_combinations(self.domain, place_types=self.place_types, place=self.selected_fixture()) for c in combos: yield [c[pt] for pt in self.place_types]