summaryrefslogtreecommitdiff
path: root/apps/photos/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/photos/models.py')
-rw-r--r--apps/photos/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/photos/models.py b/apps/photos/models.py
index a157c6e..f1d9f54 100644
--- a/apps/photos/models.py
+++ b/apps/photos/models.py
@@ -135,9 +135,10 @@ class PhotoGallery(models.Model):
photos = models.ManyToManyField(Photo)
location = models.ForeignKey(Location, null=True)
region = models.ForeignKey(Region, null=True)
+ pub_date = models.DateTimeField(null=True)
class Meta:
- ordering = ('id',)
+ ordering = ('-pub_date','id')
verbose_name_plural = 'Photo Galleries'
def __unicode__(self):