Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#156 closed defect (fixed)

changeset 293 breaks tutorial polls app

Reported by: anonymous Owned by: adrian
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: UI/UX:


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/", line 190, in get_response
    return callback(request, **param_dict)

  File "/usr/local/lib/python2.3/site-packages/django/views/admin/", 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/", line 258, in get_field
    raise FieldDoesNotExist, "name=%s" % name

FieldDoesNotExist: name=

Change History (4)

comment:1 Changed 10 years ago by mfenniak@…

Patch in related ticket #157 fixes this.

comment:2 Changed 10 years ago by hugo <gb@…>

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 Changed 10 years ago by jkocherhans@…

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 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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