diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index db9e7be..489f138 100644 Binary files a/digitaleagentur/__pycache__/settings.cpython-38.pyc and b/digitaleagentur/__pycache__/settings.cpython-38.pyc differ diff --git a/standards/__pycache__/forms.cpython-38.pyc b/standards/__pycache__/forms.cpython-38.pyc index 72fba67..4921b19 100644 Binary files a/standards/__pycache__/forms.cpython-38.pyc and b/standards/__pycache__/forms.cpython-38.pyc differ diff --git a/users/models.py b/users/models.py index d795a8e..ae0135e 100644 --- a/users/models.py +++ b/users/models.py @@ -105,7 +105,7 @@ class Profile(models.Model): phoneland = models.CharField(max_length=60, blank=True) phonemobile = models.CharField(max_length=60, blank=True) # Wenn die Funktion gelöscht wird, wird die FUNC auf NULL gesetzt - func = models.ForeignKey(AgencyJob, blank=True, null=True, on_delete=models.SET_NULL) + func = models.ForeignKey("AgencyJob", blank=True, null=True, on_delete=models.SET_NULL) # Wenn dieses Profil gelöscht wird, wird NICHT die Agency geslöscht agency = models.ForeignKey(Agency, on_delete=models.PROTECT) image = models.ImageField(default='userprofilepics/default.jpg', upload_to=picturepath_user, blank=True)