Skip to content

Commit

Permalink
Optimise migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Aug 22, 2024
1 parent 1cc61f5 commit 6278f38
Show file tree
Hide file tree
Showing 10 changed files with 324 additions and 383 deletions.
2 changes: 1 addition & 1 deletion game/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, *args, **kwargs):
# Second element is the string displayed on the dropdown menu
episodes_choices = (
(episode.id, episode.name)
for episode in Episode.objects.filter(in_development=False)
for episode in Episode.objects.filter(pk__in=range(1, 10))
)
self.fields["episodes"] = forms.MultipleChoiceField(
choices=itertools.chain(episodes_choices),
Expand Down
Loading

0 comments on commit 6278f38

Please sign in to comment.