Fix the stories relation in StoryTag

Currently this relation just contains the StoryTag itself. This
commit fixes it to contain the actual story.

Change-Id: Ie7e28dc97e6ee705c62ca2b83494c1159b173e97
This commit is contained in:
Adam Coldrick 2018-11-29 23:52:40 +00:00
parent 5ecfa05a17
commit 29046ff0c5
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class StoryTag(ModelBuilder, Base):
schema.UniqueConstraint('name', name='uniq_story_tags_name'),
)
name = Column(String(CommonLength.top_short_length))
stories = relationship('StoryTag', secondary='story_storytags')
stories = relationship('Story', secondary='story_storytags')
# Authorization models