</tbody>
</table>
</fieldset>
- <fieldset>
- <h2>Pièces jointes</h2>
- <table id="pieces_jointes">
- <tbody>
-
- <tr>
- <td> {{ pieces_jointes.nom }}</td>
- <td> <a href='http://localhost:8000/prive/{{ pieces_jointes.path }}'>{{ pieces_jointes.path }}</a></td>
- </tr>
-
- </tbody>
- </table>
- </fieldset>
</div>
def afficher_candidat(request):
candidat = get_object_or_404(Candidat, id=request.GET.get('id'))
- pieces_jointes = CandidatPiece.objects.get(candidat=candidat)
- #import pdb;pdb.set_trace()
- var = {'candidat': candidat,
- 'pieces_jointes': pieces_jointes}
+ var = {'candidat': candidat,}
return render_to_response("recrutement/afficher_candidat.html", var,
RequestContext(request))