Fixes
This commit is contained in:
parent
84bc136bb8
commit
85a74fc0c9
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ from django.contrib.auth.decorators import login_required
|
|||
from django.utils.encoding import smart_str
|
||||
from django.forms.models import modelform_factory
|
||||
from django.core.files import File
|
||||
from django.utils.safestrings import mark_safe
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
import os
|
||||
|
||||
|
@ -156,5 +156,5 @@ def listepart(request, nom, auteur):
|
|||
form.save()
|
||||
else:
|
||||
form = ChefEditForm(instance=p)
|
||||
infos = mark_safe(form.cleaned_data['infos'])
|
||||
infos = mark_safe(p.infos)
|
||||
return render(request, 'partitions/listepart.html', locals())
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{% if p.infos %}
|
||||
<div>
|
||||
<h4>Infos utiles</h4>
|
||||
<p>{{ p.infos }}</p>
|
||||
<p>{{ infos }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue