clean up code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user