two problems with this:

   db.addmaterial.techer==auth.user.first_name

auth.user exists only if the user is logged in so your actions should

   @auth.requires_login()

the other problem is it is not a idea to "denormalize" by storing the
user first_name into db.addmaterial.teacher.
You should reference users by ID.


On Oct 7, 1:50 pm, Web2Py Freak <[email protected]> wrote:
> So what to do ??

Reply via email to