Hi, I'm want to extend the default change_list.html template for my 
application's admin site.  Since most of the default functionality is going 
to exist, I figured it was best to ensure I can send the proper information 
from my view.

The closest way I am able to mimic the default functionality is to pass an 
ModelAdmin object, but I keep getting this error:

'NewRequestsAdmin' object has no attribute 'result_count'

Does anybody have any idea how the default change list views handle this on 
the admin site? I've tried reading the source but haven't had much luck. 
 Below is my current view and snippet of where it's failing on the 
template.  Any help is greatly appreciated!

def list(request):
    model = admin.site._registry[NewRequests]
    c = RequestContext(request, {
            'cl': model,
    })
    t = loader.get_template('admin/engagement_queue.html')
    return HttpResponse(t.render(c))

74 {% block search %}{% search_form cl %}{% endblock %}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to