From ec1b3c785341811f8059b41af942f5e09eab6753 Mon Sep 17 00:00:00 2001 From: Arthur Gerbaud Date: Sat, 6 Aug 2016 18:14:22 +0200 Subject: [PATCH] clean up code --- notes/models.py | 1 - notes/templatetags/notes.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/notes/models.py b/notes/models.py index 46f664e..ff5e27c 100644 --- a/notes/models.py +++ b/notes/models.py @@ -6,7 +6,6 @@ class Note(models.Model): Peut être utilisée comme classe parente. Il faut alors définir les méthodes : - - get_header, get_small - get_date - get_labels - get_bg_color diff --git a/notes/templatetags/notes.py b/notes/templatetags/notes.py index cb08999..a6a48e9 100644 --- a/notes/templatetags/notes.py +++ b/notes/templatetags/notes.py @@ -9,7 +9,7 @@ def inline_table(note): bg_color, bg_label_color = note.bg_colors return { 'header': note.created_date, - 'small': note.subclass.__qualname__, + 'small': note.child_class.__qualname__, 'bg_color': bg_color or "default", 'bg_label_color': bg_label_color or "info", 'labels': note.labels,