From 228d84124090411e93845fa321a5ca825e049e3d Mon Sep 17 00:00:00 2001 From: Mark Finger Date: Fri, 26 Jan 2018 17:18:56 +1100 Subject: [PATCH] Added a related name for WorkCategory -> Artwork --- .../contrib/work_creator/plugins/artwork/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamkit_collections/contrib/work_creator/plugins/artwork/models.py b/glamkit_collections/contrib/work_creator/plugins/artwork/models.py index 39964eaa..16d13ff7 100644 --- a/glamkit_collections/contrib/work_creator/plugins/artwork/models.py +++ b/glamkit_collections/contrib/work_creator/plugins/artwork/models.py @@ -1,6 +1,7 @@ from glamkit_collections.contrib.work_creator.models import WorkBase from django.db import models + class Artwork(WorkBase): medium_display = models.CharField( blank=True, @@ -12,6 +13,7 @@ class Artwork(WorkBase): 'gk_collections_work_creator.WorkCategory', blank=True, null=True, + related_name='artworks', help_text='A broad category that the work belongs to, e.g., "Painting", "Sculpture"' )