add signalement model and form on maraudes:index

This commit is contained in:
Arthur Gerbaud
2016-08-10 13:52:32 +02:00
parent 824d000cb1
commit d31f1e05e3
5 changed files with 21 additions and 4 deletions

View File

@@ -28,4 +28,9 @@ class Observation(Note):
def note_bg_colors(self): return ("info", "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')