order images by id?

This commit is contained in:
Sanj 2012-10-07 10:32:37 +05:30
parent be96f40582
commit aa6954ea67

View File

@ -70,6 +70,8 @@ class ProjectImage(models.Model):
def __unicode__(self): def __unicode__(self):
return self.caption return self.caption
class Meta:
ordering = ['id']
class SliderImage(models.Model): class SliderImage(models.Model):
image = models.ImageField(upload_to='slider_imgs/') image = models.ImageField(upload_to='slider_imgs/')