[Subsidies] Allow creation of "orphaned" SubsidyAttachments
In the current subsidies workflow it is only possible to add attachments after a Subsidy
object has been created. In order to make the workflow faster for mass addition of receipts and proofs of payment, it would be beneficial to allow asyncronous addition of SubsidyAttachments
prior to linking them to their Subsidy
.
Changes required:
- the subsidy FK field should be blank=True, null=True so that they can be created without any relation
- the destination folder path given by subsidy_attachment_path needs to work without a subsidy_id
- the get_absolute_url will also need to be adapted for the same reason
-
perhaps the best thing is to have a temporary location for
Subsidy
-lessSubsidyAttachment
; when aSubsidyAttachment
is then linked to aSubsidy
, the location can be moved to the location as it is currently defined -
the
SubsidyAttachment
should have an extra URL field meant to contain the URL on git.scipost.org where the item is saved to