diff --git a/games/forms.py b/games/forms.py index 046b516..ae38f34 100644 --- a/games/forms.py +++ b/games/forms.py @@ -11,7 +11,7 @@ custom_datetime_widget = forms.DateTimeInput( autofocus_input_widget = forms.TextInput(attrs={"autofocus": "autofocus"}) -class GameChoiceField(forms.ModelChoiceField): +class GameChoiceField(forms.ModelMultipleChoiceField): def label_from_instance(self, obj) -> str: return f"{obj.sort_name} ({obj.platform}, {obj.year_released})"