Delete periodic task on document type delete

Closes Gitlab issue #715. Thanks to Rob de Canha-Knight (@rssfed23)
for the report and research.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-12-17 01:27:55 -04:00
parent 8b1c5eb868
commit 4f1ecebcac
3 changed files with 20 additions and 4 deletions
+2 -3
View File
@@ -176,11 +176,10 @@ class IntervalBaseModel(OutOfProcessSource):
verbose_name=_('Interval')
)
document_type = models.ForeignKey(
DocumentType,
help_text=_(
'Assign a document type to documents uploaded from this source.'
), on_delete=models.CASCADE,
verbose_name=_('Document type')
), on_delete=models.CASCADE, to=DocumentType,
related_name='interval_sources', verbose_name=_('Document type')
)
uncompress = models.CharField(
choices=SOURCE_UNCOMPRESS_CHOICES,