I'm working with the google app engine using app-engine-patch and
dojango, i have to integrate many things of dojo in the admin
interface, in first instance i do that with FilteringSelect and
QueryReadStore for a Reference property in a model. I was code this
"widget":
class eFilteringSelect(DojoWidgetMixin, Input):
dojo_type = 'dijit.form.FilteringSelect'
def render(self, name, value, attrs=None):
storename = '%sStore' % name
attrs = {'store':storename, 'searchAttr':'nombre' }
extra_html='<div dojoType="dojox.data.QueryReadStore"
url="/store/%s/" jsId="%s"></div>' % (name,storename)
return mark_safe(extra_html+super(eFilteringSelect,
self).render(name, value, attrs))
And works, mostly ... I mean, when i want save the model there is a error:
Choose a valid option.
aghlZm8tY29uZHIqCxIbZmFsbGVjaW1pZW50b3NfbG9jYWxpemFjaW9uIglib2dvdGEtZGMM
...
In the other hand, when i read a saved model, in the admin don't show
me the name but the key is a value in the input, how i can fix that?
--
Diego Andrés Sanabria
Ingeniería de Sistemas Universidad Distrital
about:me http://www.google.com/profiles/diegueus9
cel 3015290609
Sent from Bogota, DC, Colombia