Hello every one, this has been driving me crazy for more than two hours now,
why doesn't the referenced field in the second table have a dropdown to
choose category from ?? I cant figure out what is wrong . please help me
db.define_table('product_categories',
Field('category_name',notnull=True),
Field('category_description','text',widget=advanced_editor,readable=True,
writable=True),
Field('category_order','integer',readable=True, writable=True),
format = '%(category_name)s'
)
db.define_table('products',
Field('product_name',required=True,readable=True, writable=True),
Field('product_category',db.product_categories,notnull=True),
Field('product_price','string',notnull=True,readable=True, writable=True),
Field('product_image','upload',notnull=True,readable=True,
writable=True,label="Product image 300x300"),
Field('product_description','text',widget=advanced_editor,readable=True,
writable=True),
Field('product_order','integer',readable=True, writable=True),
)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.