Change Image model ordering

This commit is contained in:
jhyns 2023-06-20 19:01:19 +09:00
parent d12bc6cf99
commit 507c1b7349

View File

@ -55,7 +55,7 @@ class Image(models.Model):
image = models.ImageField(upload_to="images", blank=True, null=True)
class Meta:
ordering = ["-pk"]
ordering = ["pk"]
def __str__(self):
return f"{self.post}"