Re: [mezzanine-users] Can´t make model searchable

2014-10-27 Thread Stephen McDonald
The model you want searched needs to subclass Displayable - your Galeria model will do that, since it subclasses Page, which subclasses Displayable, but your Item model does not. You need to stop and think about what a search result will look like and actually link to, which is the main idea

Re: [mezzanine-users] Can´t make model searchable

2014-10-27 Thread Ernesto Palafox
Thanks for your advice Stephen im trying to make a query but i get an error: FieldError: Cannot resolve keyword u'name' into field. Choices are: _meta_title, _order, children, content_model, created, description, expiry_date, form, gallery, gen_description, homepage, id, in_menus, in_sitemap,

Re: [mezzanine-users] Easy way to extends Form fields?

2014-10-27 Thread Wesley
Hi Josh, Actually, I wanna add a captcha validator on the sign in form, that is mezzanine.accounts.forms.LoginForm. I use django-simple-captcha plugin, so I need a add a field to the LoginForm, but I don't wanna change mezzanine code. So, I see EXTRA_MODEL_FIELDS is easily used to add fileds