[damned-lies] The sequence is null at beginning of each cycle



commit a1e241a15eba388f1c3c110bf28e1bc0c5826549
Author: Stéphane Raimbault <stephane raimbault gmail com>
Date:   Tue Jun 2 08:28:09 2009 +0200

    The sequence is null at beginning of each cycle
---
 vertimus/models.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/vertimus/models.py b/vertimus/models.py
index f52186f..0e1ab60 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -396,7 +396,9 @@ class ActionDbArchived(models.Model):
     created = models.DateTimeField(editable=False)
     comment = models.TextField(blank=True, null=True)
     file = models.FileField(upload_to=generate_archive_filename, blank=True, null=True)
-    sequence = models.IntegerField()
+    # The first element of each cycle is null at creation time (and defined
+    # afterward).
+    sequence = models.IntegerField(null=True)
 
     class Meta:
         db_table = 'action_archived'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]