diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-03-13 19:34:03 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-03-13 19:34:03 +0000 |
commit | 9aa6fa7cf6cb10103de9284e26db7e68b039a0b7 (patch) | |
tree | 6c89094d3ff8ed036d0e91173c2b23826b50e642 /apps/photos/models.py | |
parent | 9dcc9b71adc118abb1f3191bd9753c9e97c839cb (diff) |
fixed photo importing tools
Diffstat (limited to 'apps/photos/models.py')
-rw-r--r-- | apps/photos/models.py | 3 |
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): |