Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#156 closed defect (fixed)

changeset 293 breaks tutorial polls app

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

After svn up I get the following error when trying to access the admin for the tutorial poll application:

There's been an error:

Traceback (most recent call last):

  File "/usr/local/lib/python2.3/site-packages/django/core/handlers/wsgi.py", line 190, in get_response
    return callback(request, **param_dict)

  File "/usr/local/lib/python2.3/site-packages/django/views/admin/main.py", line 129, in change_list
    if isinstance(lookup_opts.get_field(order_field).rel, meta.ManyToOne):

  File "/usr/local/lib/python2.3/site-packages/django/core/meta.py", line 258, in get_field
    raise FieldDoesNotExist, "name=%s" % name

FieldDoesNotExist: name=

Change History (4)

comment:1 by mfenniak@…, 19 years ago

Patch in related ticket #157 fixes this.

comment:2 by hugo <gb@…>, 19 years ago

I actually didn't have any ordering defined - and I still got the error. Now I added a ordering=question setting to the model and I can go into the polls admin, again. But I get a deprecation warning about the ordering being old style, even though I use the newstyle way to define ordering.

comment:3 by jkocherhans@…, 19 years ago

It actually breaks in rev [292] I get the same error if I don't have an ordering attribute defined for any of my models.

comment:4 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [296]) Fixed #156 -- Fixed admin changelist bug as a result of ordering syntax change

Note: See TracTickets for help on using tickets.
Back to Top