I have made a 'user_details' table whose 'user_id' field I have referenced to default 'auth_user' table. Now after registration, I show the user his profile and ask him to complete it. But, the problem is that how can I check if the profile is complete or not after the user submits the updated profile.
Here is my 'user_details' table ,
db.define_table('user_details',
Field('user_id'),
Field('gender',requires=IS_IN_SET(['Male','Female','Other'])),
Field('phone_number',requires=IS_MATCH('\d{10}')),
Field('preferred_mess'),
Field('preferred_caterer'),
Field('state_name','string'),
Field('account_initial_balance'),
Field('account_curr_balance'),
Field('your_booking_preference',requires=IS_IN_SET(['''Don't Book Food Automatically''','Book Food Automatically'])))