change title with time

This commit is contained in:
2025-07-27 18:43:48 +08:00
parent 6dd9da4da0
commit 3d29569c22
2 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ class Post(models.Model):
publish_date = models.DateTimeField(default=timezone.now) publish_date = models.DateTimeField(default=timezone.now)
def __str__(self): def __str__(self):
return f"{self.title} ({self.publish_date.strftime('%Y-%m-%d')})" return f"{self.title}"
def get_markdown_content(self): def get_markdown_content(self):
import re import re