Add a Influences.type field (Influence / Notification).
[matthijs/projects/xerxes.git] / influences / models.py
index 6464e683deb20a1277c4cdf2537a4be5661640b8..10470b55aaff1a375bda1f837308e16560a7ec27 100644 (file)
@@ -35,9 +35,14 @@ class Influence(models.Model):
         ('P', _('Processing')),
         ('D', _('Done')),
     )
+    TYPE_CHOICES = (
+        ('I', _('Influence')),
+        ('N', _('Notifcation')),
+    )
     created     = models.DateField(auto_now_add=1, verbose_name = _("Creation time"))
     modified    = models.DateField(auto_now=1, verbose_name = _("Modification time"))
     
+    type        = models.CharField(max_length=1, choices=TYPE_CHOICES, default='I', verbose_name = _("Type"))
     character   = models.ForeignKey(Character, verbose_name = _("Character"))
     contact     = models.CharField(max_length=255, verbose_name = _("Contact Name"))
     summary     = models.CharField(max_length=255, verbose_name = _("Summary"))