Hi list!
I just started on django and so far my project went very well: I've
created an admin site that will allow the user some data into a
postgres db. Cool me, my first site. Now I want to do the following:
make in admin interface a custom widget that will have a charfield or
integerfield but also a checkbox, that if checked will make the field
readonly and insert the 0 value. Unfortunatelly multiwidget is not
well documented and I'm kinda new at this. I got to display a widget
from this recepie:
http://github.com/justinlilly/django_multiwidget_demo/, but that
returns 2 values, in my db I only need one, also I'm not sure how to
make the field readonly using this one. Also I've found this snippet:
http://djangosnippets.org/snippets/1058/, but using this one I only
get the custom widget that doesn't show no checkbox. This is my code:
http://dpaste.com/221817/. Could you perhaps help me with this? Can
this be done only in python? Thank you very much!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to