doc: use orm filter to limit to interesting cells

This commit is contained in:
Frédéric Péters 2018-03-20 10:48:32 +01:00
parent 111c0cab62
commit ea13ac31d0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import requests
from combo.data.models import TextCell
for cell in TextCell.objects.all():
for cell in TextCell.objects.filter(slug__startswith='mallard-'):
if not cell.slug.startswith('mallard-'):
continue
mallard_page = cell.slug.split('-', 1)[1]