Friday, June 24, 2011

Django widget popup

i tried to use sontek / django-tekextensions    ( https://github.com/sontek/django-tekextensions )
for popup widget
but cannot follow what Model.object should be given in forms.py.

#forms.py from app.widgets import SelectWithPopUp  class CustomForm(forms.Form):     selectfield = forms.ModelChoiceField(Model.objects, widget=SelectWithPopUp)

Please help.

Is there any simple better way to make a popup widget like the admin interface provides to add new data to choice field.


Please Help..
Thanks..

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/82F3SgF5tPoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment