Opened 4 years ago

Closed 4 years ago

#16689 closed Bug (fixed)

Test added in r16679 fails on Python 2.5

Reported by: aaugustin Owned by: nobody
Component: Database layer (models, ORM) Version: 1.3
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Change History (2)

comment:1 Changed 4 years ago by julien

  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by mtredinnick

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

In [16682]:

Make ManyToManyField model references more robust.

In r16679 a test was added to verify something had been fixed when a
unicode string type was passed in as a model name. The name has to be
ASCII convertible, but in Python 2.6 and earlier, it must also have str
type.

This commit fixes the problem for earlier Python versions and is almost
identical to a patch from b.leskes in #6045.

Fixes #16689. Refs #6045.

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