for area in picture.areas.all():
themes.update([(tag.category, tag.name)
for tag in area.tags if tag.category in (u'theme', u'thing')])
for area in picture.areas.all():
themes.update([(tag.category, tag.name)
for tag in area.tags if tag.category in (u'theme', u'thing')])