From 113e9584a18733aabe8a2ec20862eb6f5ed4b62d Mon Sep 17 00:00:00 2001 From: zuber Date: Fri, 6 Nov 2009 00:32:51 +0100 Subject: [PATCH] =?utf8?q?Ustawianie=20poprawnych=20=C5=9Bcie=C5=BCek=20w?= =?utf8?q?=20interfejsie=20administracyjnym=20do=20przydzielania=20galerii?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- apps/explorer/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/admin.py b/apps/explorer/admin.py index 097514a9..c84a5d93 100644 --- a/apps/explorer/admin.py +++ b/apps/explorer/admin.py @@ -15,7 +15,7 @@ class GalleryAdminForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(GalleryAdminForm, self).__init__(*args, **kwargs) - self.fields['subpath'].choices = [(x, x) for x in os.listdir(settings.MEDIA_ROOT + settings.IMAGE_DIR)] + self.fields['subpath'].choices = [(settings.IMAGE_DIR + '/' + x, x) for x in os.listdir(settings.MEDIA_ROOT + settings.IMAGE_DIR)] class Meta: mode = explorer.models.GalleryForDocument -- 2.20.1