change title with time
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user