fix related_name; add requirement for server
This commit is contained in:
parent
401556186f
commit
ed7b4b1c11
|
@ -1,2 +1,3 @@
|
||||||
Django==3.1.7
|
Django==3.1.7
|
||||||
django-formtools==2.2
|
django-formtools==2.2
|
||||||
|
mysqlclient==2.0.3
|
|
@ -27,7 +27,7 @@ class StoryRound(models.Model):
|
||||||
|
|
||||||
def next_round_ready(self) -> bool:
|
def next_round_ready(self) -> bool:
|
||||||
for story in self.story_set.all():
|
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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue