rerouted AuthBackend, changed bootstrap colors
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user