Added Creator and timestamps

This commit is contained in:
Mr McClain 2016-01-17 22:49:04 -06:00
parent 194556b56d
commit c5b384b9a2

View File

@ -1,18 +1,19 @@
from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from eveonline.models import EveCharacter
from eveonline.models import EveCorporationInfo
class sigtracker(models.Model):
class Meta:
ordering = ['sigtype']
ordering = ['post_time']
ident = models.CharField(max_length=254, default="")
system = models.CharField(max_length=254, default="")
destination = models.CharField(max_length=254, default="")
sigtype = models.CharField(max_length=254, default="")
status = models.CharField(max_length=254, default="")
notes = models.CharField(max_length=254, default="")
post_time = models.DateTimeField(default=timezone.now)
eve_character = models.ForeignKey(EveCharacter)