Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Added a related name for WorkCategory -> Artwork
Browse files Browse the repository at this point in the history
  • Loading branch information
markfinger committed Jan 26, 2018
1 parent 64909e6 commit 228d841
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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,
Expand All @@ -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"'
)

Expand Down

0 comments on commit 228d841

Please sign in to comment.