rerouted AuthBackend, changed bootstrap colors

This commit is contained in:
Arthur Gerbaud
2016-08-17 20:20:06 +02:00
parent 7694c4ea7a
commit 6e9a76696e
16 changed files with 259 additions and 227 deletions

View File

@@ -5,9 +5,16 @@ class Appel(Note):
entrant = models.BooleanField( "Appel entrant ?")
def save(self, **kwargs):
print('save', self)
return super().save(**kwargs)
def note_labels(self): return ["Reçu" if self.entrant else "Émis", self.created_by]
def note_bg_colors(self): return ("warning", "info")
class Signalement(Note):
source = models.CharField('Source', max_length=128)
def note_labels(self): return [self.source]
def note_bg_colors(self): return ('warning', 'alert')