week titles
This commit is contained in:
parent
92f21cc859
commit
bd6f03491c
5 changed files with 57 additions and 6 deletions
|
|
@ -173,3 +173,12 @@ class Comment(models.Model):
|
|||
data['published'] = self.is_published
|
||||
return data
|
||||
|
||||
|
||||
class Week(models.Model):
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
monday = models.DateField(unique=True)
|
||||
title = models.CharField(max_length=2048)
|
||||
|
||||
def __str__(self):
|
||||
return "%s (%s)" % (self.title, self.monday)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue