Hi,
I've a seemingly workable solution for this, but it's hardly elegant.
In my model, for the property_id field I have: -
,default=session.last_parent_id
,writable=False
,readable=True
...and in my controller: -
@auth.requires_login()
def property_detail_insert():
form=crud.create(db.property_detail)
session.last_parent_id=request.args(1)
return dict(form=form)
...which works, but displays the parent ID in the form.
Is there a more elegant solution using CRUD?
--
Regards,
PhilK
'a bell is a cup...until it is struck'