finances.views module¶
-
finances.views.
recent_publishing_expenditures
(months=6)[source]¶ Tally of total publishing expenditures over last months number of months.
-
class
finances.views.
SubsidyCreateView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.CreateView
Create a new Subsidy.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.Subsidy
-
form_class
¶ alias of
finances.forms.SubsidyForm
-
template_name
= 'finances/subsidy_form.html'¶
-
-
class
finances.views.
SubsidyUpdateView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.UpdateView
Update a Subsidy.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.Subsidy
-
form_class
¶ alias of
finances.forms.SubsidyForm
-
template_name
= 'finances/subsidy_form.html'¶
-
-
class
finances.views.
SubsidyDeleteView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.DeleteView
Delete a Subsidy.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.Subsidy
-
success_url
= '/finances/subsidies/'¶
-
-
class
finances.views.
SubsidyListView
(**kwargs)[source]¶ Bases:
django.views.generic.list.ListView
-
model
¶ alias of
finances.models.Subsidy
-
-
class
finances.views.
SubsidyDetailView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
-
model
¶ alias of
finances.models.Subsidy
-
-
finances.views.
subsidy_toggle_amount_public_visibility
(request, subsidy_id)[source]¶ Method to toggle the public visibility of the amount of a Subsidy. Callable by Admin and Contacts for the relevant Organization.
-
class
finances.views.
SubsidyAttachmentCreateView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.CreateView
Create a new SubsidyAttachment.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.SubsidyAttachment
-
form_class
¶ alias of
finances.forms.SubsidyAttachmentForm
-
template_name
= 'finances/subsidyattachment_form.html'¶
-
-
class
finances.views.
SubsidyAttachmentUpdateView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.UpdateView
Update a SubsidyAttachment.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.SubsidyAttachment
-
form_class
¶ alias of
finances.forms.SubsidyAttachmentForm
-
template_name
= 'finances/subsidyattachment_form.html'¶
-
success_url
= '/finances/subsidies/'¶
-
-
class
finances.views.
SubsidyAttachmentDeleteView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.DeleteView
Delete a SubsidyAttachment.
-
permission_required
= 'scipost.can_manage_subsidies'¶
-
model
¶ alias of
finances.models.SubsidyAttachment
-
-
finances.views.
subsidy_attachment_toggle_public_visibility
(request, attachment_id)[source]¶ Method to toggle the public visibility of an attachment to a Subsidy. Callable by Admin and Contacts for the relevant Organization.
-
finances.views.
timesheets
(request)[source]¶ Overview of all timesheets including comments and related objects.
-
class
finances.views.
LogDeleteView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.DeleteView
-
model
¶ alias of
finances.models.WorkLog
-