Bug-fix for fleetactivitytracking (#415)

* 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.
This commit is contained in:
Joakim Strandberg 2016-04-30 11:18:06 +02:00 committed by Mr McClain
parent d59c27aba4
commit fa05003455
3 changed files with 7 additions and 3 deletions

View File

@ -13,4 +13,4 @@ def get_fleet_list():
class FatlinkForm(forms.Form):
fatname = forms.CharField(label='Name of fat-link', required=True)
duration = forms.IntegerField(label="Duration of fat-link", required=True, initial=30, min_value=1, max_value=2147483647)
fleet = forms.ChoiceField(label="Fleet", choices=get_fleet_list())
fleet = forms.ModelChoiceField(label="Fleet", queryset=optimer.objects.all().order_by('operation_name'))

View File

@ -19,4 +19,8 @@ class optimer(models.Model):
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')

View File

@ -26,7 +26,7 @@
</style>
</head>
<body onload="CCPEVE.requestTrust({{ DOMAIN }})">
<body onload=CCPEVE.requestTrust('{{ DOMAIN }}*')>
<div id="wrapper">
<!-- Navigation -->