From 33eba8a4035330f8273c531474cb3aead3a479a9 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Tue, 25 Feb 2020 14:15:36 +0100 Subject: [PATCH] add last_negative field to note --- apps/note/models/notes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index 3d929bc8..62811735 100644 --- a/apps/note/models/notes.py +++ b/apps/note/models/notes.py @@ -27,6 +27,12 @@ class Note(PolymorphicModel): help_text=_('in centimes, money credited for this instance'), default=0, ) + last_negative= models.DateTimeField( + verbose_name=_('last negative date'), + help_text=_('last time the balance was negative'), + null=True, + blank=True, + ) is_active = models.BooleanField( _('active'), default=True,