def get_publication(context, id):
pbl = Publication.objects.filter(pk=int(id))<EOL>if len(pbl) < <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>pbl[<NUM_LIT:0>].links = pbl[<NUM_LIT:0>].customlink_set.all()<EOL>pbl[<NUM_LIT:0>].files = pbl[<NUM_LIT:0>].customfile_set.all()<EOL>return render_template(<EOL>'<STR_LIT>', context['<STR_LIT>'], {'<STR_LIT>': pbl[<NUM_LIT:0>]})<EOL>
Get a single publication.