diff --git a/stories/requirements.txt b/stories/requirements.txt index f20a5d3..df79b2b 100644 --- a/stories/requirements.txt +++ b/stories/requirements.txt @@ -1,2 +1,3 @@ Django==3.1.7 django-formtools==2.2 +mysqlclient==2.0.3 \ No newline at end of file diff --git a/stories/writingtogether/models.py b/stories/writingtogether/models.py index 9e93cce..dcb29d6 100644 --- a/stories/writingtogether/models.py +++ b/stories/writingtogether/models.py @@ -27,7 +27,7 @@ class StoryRound(models.Model): def next_round_ready(self) -> bool: for story in self.story_set.all(): - if not story.storypart_set.get(turn_number=self.current_turn).finished: + if not story.parts.get(turn_number=self.current_turn).finished: return False return True