- categories = (('kinds', 'kind'), ('genres', 'genre'), ('authors', 'author'), ('epochs', 'epoch'))
- for field_name, category in categories:
+ categories = (
+ # BookInfo field names, Tag category, relationship
+ ('kinds', 'kind', None),
+ ('genres', 'genre', None),
+ ('epochs', 'epoch', None),
+ ('authors', 'author', None),
+ ('translators', 'author', 'translator'),
+ )
+ for field_name, category, relationship in categories: