You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
576 B
15 lines
576 B
# -*- coding: utf-8 -*-
|
|
from django import forms
|
|
|
|
from .models import FondStats
|
|
|
|
|
|
class AdminBaseImportForm(forms.Form):
|
|
"""Форма импорта из указанного файла."""
|
|
xls_file = forms.FileField(label=u'Файл для импорта')
|
|
|
|
|
|
class AdminFondStatsImportForm(AdminBaseImportForm):
|
|
"""Форма импорта основных показателей НПФ."""
|
|
god = forms.IntegerField(label=u'год', min_value=2000, max_value=2030)
|
|
kvartal = forms.ChoiceField(label=u'квартал', choices=FondStats.KVARTAL_CHOICES)
|
|
|