Order photos by title
This commit is contained in:
parent
c84a4e1a22
commit
7e912b225c
1 changed files with 3 additions and 1 deletions
|
|
@ -475,7 +475,9 @@ class Photo(ImageModel):
|
|||
help_text=_('Public photographs will be displayed in the default views.'))
|
||||
|
||||
class Meta:
|
||||
ordering = ['-date_added']
|
||||
# We do not have a reliable date for ordering, so let's use
|
||||
# the title which is incremented by most cameras
|
||||
ordering = ['title']
|
||||
get_latest_by = 'date_added'
|
||||
verbose_name = _("photo")
|
||||
verbose_name_plural = _("photos")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue