Sort gallery media by capture date instead of file name
All checks were successful
Docker / build (release) Successful in 9s
All checks were successful
Docker / build (release) Successful in 9s
This commit is contained in:
parent
2f0c426dc1
commit
f7415fb5f6
11 changed files with 314 additions and 33 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue