Initial import of codebase

This commit is contained in:
2013-05-05 18:24:00 +01:00
commit 51337beeb0
42 changed files with 1121 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
from django.db import models
class Owner(models.Model):
id = models.BigIntegerField('Owner ID', primary_key=True)
name = models.CharField('Owner Name', max_length=200)
class Meta:
app_label = 'timer'
def __unicode__(self):
return self.name
class Alliance(Owner):
class Meta:
app_label = 'timer'
class Corporation(Owner):
"""Represents a EVE Corporation """
alliance = models.ForeignKey(Alliance, related_name='corporations', null=True)
class Meta:
app_label = 'timer'