The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Add a created_at_rss method to the blog Post model

master
Gergely Polonkai 8 years ago
parent 337e1eea2b
commit ed7a61207a
  1. 3
      blog/models.py

@ -21,6 +21,9 @@ class Post(models.Model):
super(Post, self).save(*args, **kwargs)
def created_at_rss(self):
return self.created_at.strftime('%a, %d %b %Y %T %z')
class CodeChunk(models.Model):
language = models.CharField(max_length = 20)
created_at = models.DateTimeField(auto_now_add = True)

Loading…
Cancel
Save