added SignalementForm, updated NoteFormMixin, various fixes

This commit is contained in:
Arthur Gerbaud
2016-08-24 18:17:59 +02:00
parent 6e9a76696e
commit 746c21e52b
13 changed files with 100 additions and 38 deletions

View File

@@ -49,11 +49,11 @@ class Note(models.Model):
def note_date(self):
""" Default 'created_date' value. Child may override this method. """
return timezone.now().date()
return timezone.localtime(timezone.now()).date()
def note_time(self):
""" Default 'created_time' value. Child may override this method. """
return timezone.now().time()
return timezone.localtime(timezone.now()).time()
def note_bg_colors(self):
""" Returns (header background color, labels color).