'An entity needs to be specified with the "edit" query string
parameter.
@return: dictionary with pe_id and name of the org/office.'

def get_entity(self):

    entity = self.request.get_vars.get('edit', None)
    if entity:
        entity = dict(id=int(entity), name=self.objects.get(int(entity), None))
    return entity
