clean up code

This commit is contained in:
Arthur Gerbaud
2016-08-06 18:14:22 +02:00
parent af5c8d61e9
commit ec1b3c7853
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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,