From 1e49a91ca729ea0596d07f47b917149c230e9614 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sat, 9 Feb 2008 01:41:04 +0100 Subject: [PATCH] * Add a status to Characters. --- influences/models.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.30.2