mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
* Initial testing of paplink functionality. More fancy interfaces coming. * Removed a invalid view reference. * Added a link on the front page. * Fixed some bad references and incorrect in game browser header usages. * Started work on statistics-pages. * Added an initial modify-paplink page where the pap itself can be deleted and characters removed. * Added a very simple statistics page. Also some name change for ~reasons~. * Small but crucial fix of syntax. * Added personal statistics page. * Corputils page now include fatlinkstats. * Added link to the personal statistics page. Moved other buttons for clarity. * Removed some unused code and imports * Added more statistics, and all corps in alliance are now visible even if no paps are registered. * Now requesting trust for the right domain. And some redundant imports and commented lines are removed. * Fixed some issues with trust request and pull-down population.
27 lines
985 B
Python
27 lines
985 B
Python
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
|
|
from datetime import datetime
|
|
|
|
|
|
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):
|
|
output = self.operation_name
|
|
return output.encode('utf-8')
|
|
|