From: Matthijs Kooijman Date: Sat, 9 Feb 2008 00:41:04 +0000 (+0100) Subject: * Add a status to Characters. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=1e49a91ca729ea0596d07f47b917149c230e9614;p=matthijs%2Fprojects%2Fxerxes.git * Add a status to Characters. --- diff --git a/influences/models.py b/influences/models.py index 53eee02..6094181 100644 --- a/influences/models.py +++ b/influences/models.py @@ -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):