Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug in manipulator_valid_rel_key -- it assumed the related obje…

…ct was related by the primary-key field, whereas this didn't work with ForeignKeys to non-primary-key fields

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0a2e8daaafe3bf164e9082175bec1961ada30a4c 1 parent 36e4e5a
Adrian Holovaty authored July 13, 2006

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

  1. 16  django/db/models/fields/related.py
16  django/db/models/fields/related.py
@@ -23,7 +23,7 @@ def add_lookup(rel_cls, field):
@@ -46,7 +46,7 @@ def manipulator_valid_rel_key(f, self, field_data, all_data):
@@ -79,11 +79,11 @@ def do_related_class(self, other, cls):
@@ -94,8 +94,8 @@ def pk_trace(value):
@@ -103,7 +103,7 @@ def pk_trace(value):

0 notes on commit 0a2e8da

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