mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 14:46:20 +01:00
* Refactor allianceauth into its own package * Add setup * Add missing default_app_config declarations * Fix timerboard namespacing * Remove obsolete future imports * Remove py2 mock support * Remove six * Add experimental 3.7 support and multiple Dj versions * Remove python_2_unicode_compatible * Add navhelper as local package * Update requirements
13 lines
513 B
Python
13 lines
513 B
Python
|
|
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from allianceauth.optimer.models import OpTimer
|
|
|
|
|
|
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'))
|