I've added the field request_tenant  using :

if auth.user:
     defaultval = auth.user.id
   
else:
  defaultval = 0

db._common_fields.append(Field('request_tenant',default=defaultval))

While create a new record , the default value is inserted into the table,
But when i view the records from the index.html file , i see all the records 
and not just the records for that particular user ! 

-- 



Reply via email to