Thanks Bruno!

I'm doing something wrong:

*my controller*:

def index():
    db.postulaciones.estado_postulacion.represent = lambda 
r:db.estados_postulacion[r].nombre
    lista_postulaciones = db(db.postulaciones.postulante == 
db.auth_user.id).select()

    return dict( lista_postulaciones = lista_postulaciones)

*my view:*
*
*
<table class="data">
                 <tr>
                     <th>ID </th>
                     <th>Fecha de Postulación</th>
                     <th>Estado</th>
                     <th>Nombres</th>
                     <th>Apellido Paterno</th>
                     <th>Apellido Materno</th>
                     <th>Ver Postulación</th>
                 </tr>
                 {{for postulacion in lista_postulaciones:}}
                 <tr>
                     <td>{{=postulacion.postulaciones.id}}</td>
                    
 <td>{{=postulacion.postulaciones.fecha_postulacion}}</td>
                    
 <td>{{=postulacion.postulaciones.estado_postulacion}}</td>
                     <td>{{=postulacion.auth_user.first_name}}</td>
                     <td>{{=postulacion.auth_user.last_name}}</td>
                     <td>{{=postulacion.auth_user.apellido_materno}}</td>
                     <td>{{=A('VER POSTULACIÓN', _href=URL(r=request, 
f='ver_postulacion', args=postulacion.postulaciones.id))}}</td>

                 </tr>
                 {{pass}}
             </table>

*and I get this:*

IDFecha de PostulaciónEstadoNombresApellido PaternoApellido MaternoVer 
Postulación62011-08-03 12:53:151PepeArayaBossaVER POSTULACIÓN



Thank you for your help!

Reply via email to