Order devices alphabetically on new session form
This commit is contained in:
parent
06a4319623
commit
553030c08e
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
### Improved
|
### Improved
|
||||||
* game overview: simplify playtime range display
|
* game overview: simplify playtime range display
|
||||||
|
* new session: order devices alphabetically
|
||||||
|
|
||||||
## 1.3.0 / 2023-11-05 15:09+01:00
|
## 1.3.0 / 2023-11-05 15:09+01:00
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@ class SessionForm(forms.ModelForm):
|
||||||
widget=autofocus_select_widget,
|
widget=autofocus_select_widget,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
device = forms.ModelChoiceField(queryset=Device.objects.order_by("name"))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
widgets = {
|
widgets = {
|
||||||
"timestamp_start": custom_datetime_widget,
|
"timestamp_start": custom_datetime_widget,
|
||||||
|
|
Loading…
Reference in New Issue