Now authenicates access to services based on groups, not simple tags

This commit is contained in:
2010-02-28 23:09:33 +00:00
parent 0f2c57cd5a
commit b53e662200
8 changed files with 39 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
This module holds data from the EVE XML API.
"""
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import User, Group
from eve_proxy.models import CachedDocument
from eve_api.managers import EVEPlayerCorporationManager, EVEPlayerAllianceManager, EVEPlayerCharacterManager
from eve_api.app_defines import API_STATUS_CHOICES, API_STATUS_PENDING
@@ -137,7 +137,9 @@ class EVEPlayerCorporation(EVEAPIModel):
logo_color1 = models.IntegerField(blank=True, null=True)
logo_color2 = models.IntegerField(blank=True, null=True)
logo_color3 = models.IntegerField(blank=True, null=True)
group = models.ForeignKey(Group, blank=True, null=True)
objects = EVEPlayerCorporationManager()
class Meta: