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
12 lines
538 B
Python
12 lines
538 B
Python
from __future__ import unicode_literals
|
|
from django import forms
|
|
from optimer.models import OpTimer
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
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.ModelChoiceField(label=_("Fleet"), queryset=OpTimer.objects.all().order_by('operation_name'))
|