From 98d786a6c4654e27d8021e6f605f528a5ca11f32 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Sat, 2 May 2020 14:12:20 +0200 Subject: [PATCH] Zwischencommit und Bilder Test --- cloud/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/models.py b/cloud/models.py index 1d34788..178b25b 100644 --- a/cloud/models.py +++ b/cloud/models.py @@ -8,7 +8,7 @@ from django.conf import settings def user_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT/agency_/files// - return settings.MEDIA_URL + 'agencydata/agency_{0}/files/{1}'.format(instance.agency.pk, filename) + return 'agencydata/agency_{0}/files/{1}'.format(instance.agency.pk, filename) class Data(models.Model):