fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d7b5a
)
Ustawianie poprawnych ścieżek w interfejsie administracyjnym do przydzielania galerii.
author
zuber
<marek@stepniowski.com>
Thu, 5 Nov 2009 23:32:51 +0000
(
00:32
+0100)
committer
zuber
<marek@stepniowski.com>
Thu, 5 Nov 2009 23:32:51 +0000
(
00:32
+0100)
apps/explorer/admin.py
patch
|
blob
|
history
diff --git
a/apps/explorer/admin.py
b/apps/explorer/admin.py
index
097514a
..
c84a5d9
100644
(file)
--- 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