Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 587fbff3dd500cd3444dc7a0717e541307ff869d 1 parent 2047305
Malcolm Tredinnick authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  django/db/models/fields/related.py
4  django/db/models/fields/related.py
@@ -1007,6 +1007,10 @@ def __init__(self, to, **kwargs):

0 notes on commit 587fbff

Please sign in to comment.
Something went wrong with that request. Please try again.