I am using Crud to create a group and read the group, but i get the
following error below. The Crud.read for the profile function works
fine but not for the group function.
<type 'exceptions.AttributeError'>('Auth' object has no attribute
'group_id')
My code is:
def profile():
user = auth.user_id
form = crud.read(db.auth_user,user)
return dict(form=form, user=user)
def create_group():
form = crud.create(db.auth_group, next=URL('group'),
message=T("group created")) if auth.user else None
return dict(form=form)
def group():
group = auth.group_id
form = crud.read(db.auth_group,group)
return dict(form=form, group=group)