improved NoteFormMixin, added Appel model and form in 'suivi'

This commit is contained in:
Arthur Gerbaud
2016-08-17 17:39:24 +02:00
parent d940bc5b1c
commit 9812aa858c
11 changed files with 76 additions and 50 deletions

View File

@@ -10,8 +10,8 @@ class Observation(Note):
objects = managers.ObservationManager()
rencontre = models.ForeignKey( 'maraudes.Rencontre',
related_name="observations",
on_delete=models.CASCADE
models.CASCADE,
related_name="observations"
)
# Note attributes proxies
@@ -28,3 +28,6 @@ class Signalement(Note):
def note_labels(self): return [self.source]
def note_bg_colors(self): return ('warning', 'alert')