Or write a custom filter that checks to see if the current category is
found in the list of checked categories.
2009/11/17 Joshua Smith joshuaesm...@charter.net:
I usually tackle these kinds of problems with Javascript. In the page you
generate, write javascript commands to check the boxes
I have a model M defined:
class M:
...
categories = db.ListProperty(db.Key)
I'm trying to figure out a way to ensure that when a user chooses to
edit an instance of M they are presented with an edit page that:
1) has a list of checkboxes for each category
2) each category that belongs to the
I usually tackle these kinds of problems with Javascript. In the page you
generate, write javascript commands to check the boxes you need.
function setChecks()
{
{% for c in model.categories %}
document.getElementById({{ c }}).checked = true;
{% endfor %}
}
...
{% for c in categories %}