Hi,

I've managed to implement the Changelist class from the Admin in my own
view.
I needed to get the list_filter in my own view. Changed filters display
from lists to selects. Now I have my model listed in a table, and can
sort/filter by some
records.

I also implemented a jumpTo() javascript, so when selecting from the
list above
my table I get results sorted without any submit buttton need.


The problem is that one of my fields is a ForeignKey to another model,
and there are few thousands of records which means my <select> field
is huge...

For adding new record I've used a great
http://code.djangoproject.com/wiki/AJAXWidgetComboBox tutorial.. but I
have no idea how / if this widget
can be used for objects filtering when representing more results from
my model. Simply how to merge it with: Changelist()  class from Admin.


I'm fairly new to ajax/python technology.

My filters.html:
<tr>
<td>{% filter cl cl.filter_specs.0 %}</td>
<td>{% filter cl cl.filter_specs.2 %}</td>
<td>{% filter cl cl.filter_specs.3 %}</td>
{% comment %}Below need to be AJAX'ed{% endcomment %}
<td>{% filter cl cl.filter_specs.4 %}</td>
<td>{% filter cl cl.filter_specs.5 %}</td>
</tr>
</table>

filter.html:
{% for choice in choices %}
        <option {% if choice.selected %} selected {% endif %}
value="/exchange/import/{{ choice.query_string}}">{{
choice.display|escape}}</option>
        
{% endfor %}

Please help,

Thanks,
Robert


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to