From 9aa6fa7cf6cb10103de9284e26db7e68b039a0b7 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sat, 13 Mar 2010 19:34:03 +0000 Subject: fixed photo importing tools --- apps/photos/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/photos/models.py') 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): -- cgit v1.2.3-70-g09d2