- objname = part['object']
- tag, created = catalogue.models.Tag.objects.get_or_create(slug=slughifi(objname), category='thing')
- if created:
- tag.name = objname
- tag.sort_key = sortify(tag.name)
- tag.save()
- #thing_tags.add(tag)
- area_data['things'][tag.slug] = {
- 'object': part['object'],
- 'coords': part['coords'],
- }
- area = PictureArea.rectangle(picture, 'thing', part['coords'])
- area.save()