Also set the type of exising Characters to Player.
SQL: ALTER TABLE `influences_character` ADD `type` VARCHAR( 2 ) NOT NULL AFTER `player_id`;
SQL: UPDATE `influences_character` SET `type` = 'P';
('N', _('New')),
('A', _('Approved')),
)
+ TYPE_CHOICES = (
+ ('P', _('Player')),
+ ('N', _('NPC')),
+ ('C', _('Contact')),
+ )
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"))
+ type = models.CharField(max_length=2, choices=TYPE_CHOICES, verbose_name=_("Type"))
def __unicode__(self):
return self.name