finances.forms module¶
-
class
finances.forms.
SubsidyForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
finances.models.Subsidy
-
fields
= ['organization', 'subsidy_type', 'description', 'amount', 'amount_publicly_shown', 'status', 'date', 'date_until', 'renewable', 'renewal_of']¶
-
-
base_fields
= {'amount': <django.forms.fields.IntegerField object>, 'amount_publicly_shown': <django.forms.fields.BooleanField object>, 'date': <django.forms.fields.DateField object>, 'date_until': <django.forms.fields.DateField object>, 'description': <django.forms.fields.CharField object>, 'organization': <django.forms.models.ModelChoiceField object>, 'renewable': <django.forms.fields.NullBooleanField object>, 'renewal_of': <django.forms.models.ModelMultipleChoiceField object>, 'status': <django.forms.fields.TypedChoiceField object>, 'subsidy_type': <django.forms.fields.TypedChoiceField object>}¶
-
declared_fields
= {'organization': <django.forms.models.ModelChoiceField object>}¶
-
property
media
¶
-
class
-
class
finances.forms.
SubsidyAttachmentForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
finances.models.SubsidyAttachment
-
fields
= ('subsidy', 'attachment', 'name', 'publicly_visible')¶
-
-
base_fields
= {'attachment': <django.forms.fields.FileField object>, 'name': <django.forms.fields.CharField object>, 'publicly_visible': <django.forms.fields.BooleanField object>, 'subsidy': <django.forms.models.ModelChoiceField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
finances.forms.
WorkLogForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
finances.models.WorkLog
-
fields
= ('comments', 'log_type', 'duration')¶
-
widgets
= {'comments': <django.forms.widgets.Textarea object>, 'duration': <django.forms.widgets.TextInput object>}¶
-
-
base_fields
= {'comments': <django.forms.fields.CharField object>, 'duration': <django.forms.fields.DurationField object>, 'log_type': <django.forms.fields.CharField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
finances.forms.
LogsFilterForm
(*args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
Filter work logs given the requested date range and users.
-
clean
()[source]¶ Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
-
base_fields
= {'employee': <scipost.fields.UserModelChoiceField object>, 'end': <django.forms.fields.DateField object>, 'start': <django.forms.fields.DateField object>}¶
-
declared_fields
= {'employee': <scipost.fields.UserModelChoiceField object>, 'end': <django.forms.fields.DateField object>, 'start': <django.forms.fields.DateField object>}¶
-
property
media
¶
-