projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
925ba6c
)
Bugfix: pièces jointes
author
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 6 Jun 2012 19:28:13 +0000
(15:28 -0400)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 6 Jun 2012 19:28:13 +0000
(15:28 -0400)
project/views.py
patch
|
blob
|
blame
|
history
diff --git
a/project/views.py
b/project/views.py
index
ab19f9f
..
a69e1b1
100644
(file)
--- a/
project/views.py
+++ b/
project/views.py
@@
-23,7
+23,7
@@
def piece(request, filename):
path = os.path.join(settings.PRIVE_MEDIA_ROOT, filename)
return sendfile(request, path)
- application = __import__(app).models
+ application = __import__('project.' + app).models
if model == 'contrat':
# TODO definir peut-être un controle d'accès
piece = get_object_or_404(application.Contrat, fichier=filename)