Commit 86605fc8 authored by JB's avatar JB

change variable name

parent 12a4b7b2
...@@ -455,7 +455,7 @@ class Session(models.Model): ...@@ -455,7 +455,7 @@ class Session(models.Model):
settings.AUTH_USER_MODEL, null=True, db_index=True, editable=False, related_name='session_modifier') settings.AUTH_USER_MODEL, null=True, db_index=True, editable=False, related_name='session_modifier')
@property @property
def filename(self): def data_filename(self):
return os.path.basename(self.data_file.name) return os.path.basename(self.data_file.name)
def __str__(self): def __str__(self):
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<label>Fichiers relatifs à la session</label> <label>Fichiers relatifs à la session</label>
<div class="well well-sm"><a href="{% get_media_prefix %}/{{ object.data_file }}" target='_blank'> {{ object.filename }}</a></div> <div class="well well-sm"><a href="{% get_media_prefix %}/{{ object.data_file }}" target='_blank'> {{ object.data_filename }}</a></div>
</div> </div>
</div> </div>
</fieldset> </fieldset>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment