Add Character information to the Service Accounts

This commit is contained in:
2010-11-01 20:36:30 +00:00
parent e36a8ea2e0
commit fc66668c6c
2 changed files with 157 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ from django.contrib.auth.models import User, UserManager, Group
from django.utils import simplejson as json
from jsonfield.fields import JSONField
from eve_api.models import EVEAccount, EVEPlayerCorporation, EVEPlayerAlliance
from eve_api.models import EVEAccount, EVEPlayerCorporation, EVEPlayerAlliance, EVEPlayerCharacter
from reddit.models import RedditAccount
from services import get_api
@@ -203,7 +203,7 @@ class ServiceAccount(models.Model):
service_uid = models.CharField("Service UID", max_length=200, blank=False)
active = models.BooleanField(default=True)
character = None
character = models.ForeignKey(EVEPlayerCharacter, null=True)
username = None
password = None