mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Add help text to State model Remove navbar group headings Fix registration email pluralization Group memberships on state admin page Attempt to prevent resetting of state if set on profile admin manually Embed readthedocs on help page Rename CorpStats API Index to Registration Index Default corputils view to main character's corp if available Correct Application characters listing Correct string coercion of optimers Improve readability of SRP values with intcomma Beautify tables by embeding in panels Replace slugify with py3-friendly python-slugify
27 lines
984 B
Python
27 lines
984 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="")
|
|
location = 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="")
|
|
details = 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
|