Order devices alphabetically on new session form
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-11-09 10:09:32 +01:00
parent c52cd822ae
commit ce3c4b55f0
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@
### Improved
* game overview: simplify playtime range display
* new session: order devices alphabetically
## 1.3.0 / 2023-11-05 15:09+01:00

View File

@ -19,6 +19,8 @@ class SessionForm(forms.ModelForm):
widget=autofocus_select_widget,
)
device = forms.ModelChoiceField(queryset=Device.objects.order_by("name"))
class Meta:
widgets = {
"timestamp_start": custom_datetime_widget,