Sort gallery media by capture date instead of file name
All checks were successful
Docker / build (release) Successful in 9s

This commit is contained in:
krek0 2026-09-24 12:52:50 +02:00
parent 2f0c426dc1
commit f7415fb5f6
11 changed files with 314 additions and 33 deletions

View file

@ -43,6 +43,9 @@ class MultipleFileField(forms.FileField):
class UploadForm(forms.Form):
file_field = MultipleFileField(label="")
# File.lastModified, in milliseconds, sent by upload.js. An upload is the last
# chance to catch it: the date of the file itself does not survive HTTP.
file_modified = forms.IntegerField(required=False, widget=forms.HiddenInput)
gallery = forms.ModelChoiceField(
Gallery.objects.all(),
label=_("Gallery"),