projects
/
matthijs
/
projects
/
xerxes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53c4cea
)
* Add a status to Characters.
author
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Sat, 9 Feb 2008 00:41:04 +0000
(
01:41
+0100)
committer
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Sat, 9 Feb 2008 00:41:04 +0000
(
01:41
+0100)
influences/models.py
patch
|
blob
|
history
diff --git
a/influences/models.py
b/influences/models.py
index 53eee0274ff6e6b5229ce737afb4cbeccb5afb08..6094181ae66ccd332ad971ad30b07a0838baa3d8 100644
(file)
--- 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):
# 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"))
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):
player = models.ForeignKey(User, verbose_name = _("Player"))
def __str__(self):