Change Image model ordering
This commit is contained in:
parent
d12bc6cf99
commit
507c1b7349
@ -55,7 +55,7 @@ class Image(models.Model):
|
|||||||
image = models.ImageField(upload_to="images", blank=True, null=True)
|
image = models.ImageField(upload_to="images", blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ["-pk"]
|
ordering = ["pk"]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.post}"
|
return f"{self.post}"
|
||||||
|
Loading…
Reference in New Issue
Block a user