* Add a status to Characters.
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sat, 9 Feb 2008 00:41:04 +0000 (01:41 +0100)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sat, 9 Feb 2008 00:41:04 +0000 (01:41 +0100)
influences/models.py

index 53eee0274ff6e6b5229ce737afb4cbeccb5afb08..6094181ae66ccd332ad971ad30b07a0838baa3d8 100644 (file)
@@ -4,9 +4,14 @@ from django.utils.translation import ugettext_lazy as _
 
 # Create your models here.
 class Character(models.Model):
+    STATUS_CHOICES = (
+        ('N', _('New')),
+        ('A', _('Approved')),
+    )
     created     = models.DateField(auto_now_add=1, verbose_name = _("Creation time"))
     modified    = models.DateField(auto_now=1, verbose_name = _("Modification time"))
     name        = models.CharField(max_length=255, verbose_name = _("Name"))
+    status      = models.CharField(max_length=2, choices=STATUS_CHOICES, default='N', verbose_name = _("Status"))
     player      = models.ForeignKey(User, verbose_name = _("Player"))
 
     def __str__(self):