From d915f327dc6554e3c346b0d3e7c9fb89b3a825e6 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 1 Nov 2021 15:21:25 +0100 Subject: [PATCH] db_constraint = False to solve deployment problem? --- input/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/models.py b/input/models.py index dfbae40..fa37112 100644 --- a/input/models.py +++ b/input/models.py @@ -76,7 +76,7 @@ class Project(Volunteer): insurance_technic = models.BooleanField(default=False, verbose_name='Technikversicherung Ausland') support = models.CharField(max_length=300, blank=True, null=True, verbose_name='Betreuungsperson und Vertretung') cost = models.IntegerField(blank=True, null=True) - account = models.ForeignKey('Account', on_delete=models.CASCADE, null=True, to_field='code') + account = models.ForeignKey('Account', on_delete=models.CASCADE, null=True, to_field='code', db_constraint = False) granted_from = models.CharField(max_length=100,null=True,verbose_name='Bewilligt von') notes = models.CharField(max_length=1000,null=True,blank=True,verbose_name='Anmerkungen')