order images by id?
This commit is contained in:
parent
be96f40582
commit
aa6954ea67
|
@ -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/')
|
||||
|
|
Loading…
Reference in New Issue
Block a user