From aa6954ea67d40abb7860aa0c0201b95ac19323ed Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 7 Oct 2012 10:32:37 +0530 Subject: [PATCH] order images by id? --- urbstudio/urb/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urbstudio/urb/models.py b/urbstudio/urb/models.py index 2e145f9..2ac3a3e 100755 --- a/urbstudio/urb/models.py +++ b/urbstudio/urb/models.py @@ -70,6 +70,8 @@ class ProjectImage(models.Model): def __unicode__(self): return self.caption + class Meta: + ordering = ['id'] class SliderImage(models.Model): image = models.ImageField(upload_to='slider_imgs/')