diff options
Diffstat (limited to 'client/models.py')
-rw-r--r-- | client/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/models.py b/client/models.py index 5d59e3e..dd5d998 100644 --- a/client/models.py +++ b/client/models.py @@ -69,7 +69,7 @@ class Document(models.Model): PersonalData, default=None, on_delete=models.PROTECT, null=True) medical_data = models.ForeignKey( - MedicalData, default=None, on_delete=models.PROTECT, null=True) + MedicalData, default=None, on_delete=models.SET_NULL, null=True) signed_doc = models.FileField(default=None, upload_to='documents/', null=True) |