mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
25 lines
865 B
Python
25 lines
865 B
Python
from __future__ import unicode_literals
|
|
from django.utils.encoding import python_2_unicode_compatible
|
|
from django.db import models
|
|
from django.utils import timezone
|
|
from eveonline.models import EveCharacter
|
|
from datetime import datetime
|
|
|
|
|
|
@python_2_unicode_compatible
|
|
class optimer(models.Model):
|
|
class Meta:
|
|
ordering = ['start']
|
|
|
|
doctrine = models.CharField(max_length=254, default="")
|
|
system = models.CharField(max_length=254, default="")
|
|
start = models.DateTimeField(default=datetime.now)
|
|
duration = models.CharField(max_length=25, default="")
|
|
operation_name = models.CharField(max_length=254, default="")
|
|
fc = models.CharField(max_length=254, default="")
|
|
post_time = models.DateTimeField(default=timezone.now)
|
|
eve_character = models.ForeignKey(EveCharacter)
|
|
|
|
def __str__(self):
|
|
return self.operation_name
|