assets: ignore cells from snapshots (#27948)
This commit is contained in:
parent
167c78c795
commit
308d2f845d
|
@ -93,7 +93,9 @@ class SlotAsset(object):
|
|||
assets = dict([(x.key, x) for x in Asset.objects.all()])
|
||||
uniq_slots = {}
|
||||
uniq_slots.update(settings.COMBO_ASSET_SLOTS)
|
||||
for cell in CellBase.get_cells(cell_filter=lambda x: bool(x.get_asset_slots)):
|
||||
for cell in CellBase.get_cells(
|
||||
cell_filter=lambda x: bool(x.get_asset_slots),
|
||||
page__snapshot__isnull=True):
|
||||
uniq_slots.update(cell.get_asset_slots())
|
||||
for key, value in uniq_slots.items():
|
||||
yield cls(key,
|
||||
|
|
Loading…
Reference in New Issue