Commit aa932110 authored by Skia's avatar Skia

Add support for editing album date

parent 318c9ff9
Pipeline #753 passed with stage
in 3 minutes and 25 seconds
......@@ -39,7 +39,7 @@
{% endif %}
{% endif %}
<div>
{% for a in album.children_albums.order_by('-id') %}
{% for a in album.children_albums.order_by('-date') %}
<div style="display: inline-block;">
{% if edit_mode %}
<input type="checkbox" name="file_list" value="{{ a.id }}">
......
......@@ -253,7 +253,8 @@ class PictureEditForm(forms.ModelForm):
class AlbumEditForm(forms.ModelForm):
class Meta:
model = Album
fields=['name', 'file', 'parent', 'edit_groups']
fields = ['name', 'date', 'file', 'parent', 'edit_groups']
date = forms.DateField(label=_("Date"), widget=SelectDate, required=True)
parent = make_ajax_field(Album, 'parent', 'files', help_text="")
edit_groups = make_ajax_field(Album, 'edit_groups', 'groups', help_text="")
recursive = forms.BooleanField(label=_("Apply rights recursively"), required=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment