Adrian Holovaty wrote:
> On 10/22/05, stava <[EMAIL PROTECTED]> wrote:
> > Do you have a similar trick for the object list view?
>
> Sure! To view the automatically-generated template for the object list
> view, find the line "t =
> loader.get_template_from_string(''.join(raw_template))" (line 492) in
> django/contrib/admin/views/main.py, and put the following line before
> it:
>
> return HttpResponse(raw_template, mimetype='text/plain')

Well, almost. For the other two, add_stage and change_stage, it worked
fine and I now have two great templates to start with.

For this one, the change_list, I got the following trace:

Traceback (most recent call last):
  File
"/usr/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 273, in run
    self.finish_response()
  File
"/usr/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 312, in finish_response
    self.write(data)
  File
"/usr/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 383, in write
    assert type(data) is StringType,"write() argument must be string"
AssertionError: write() argument must be string

Any ideas?

/LarS

Reply via email to