Skip to content
Snippets Groups Projects
Commit 260de319 authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

models: add required on_delete kwarg to ForeignKey

courtesy of mypy
parent 8f39669a
No related branches found
No related tags found
1 merge request!39models: add required on_delete kwarg to ForeignKey
......@@ -121,7 +121,7 @@ class Deposit(models.Model):
default=DEPOSIT_STATUS_PARTIAL)
status_detail = JSONField(null=True)
# deposit can have one parent
parent = models.ForeignKey('self', null=True)
parent = models.ForeignKey('self', on_delete=models.PROTECT, null=True)
check_task_id = models.TextField(
blank=True, null=True,
verbose_name="Scheduler's associated checking task id"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment