34
34
def edit_occupation(request):
35
35
occupation = request.sa.query(Occupation).filter(Occupation.id == request.REQUEST['id']).one()
36
36
components = request.sa.query(Component).order_by('name')
37
38
return render_to_response('main/edit_occupation.html', {
38
39
'occupation': occupation,
39
40
'components': components,
42
44
################################################################################