Closed Bug 1277593 Opened 8 years ago Closed 8 years ago

Make FlexibleForeignKey compatible with Django 1.9

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

Bug 1182464 added a custom field (BigAutoField) as a stopgap for https://code.djangoproject.com/ticket/14286 (which has only just landed in Django 1.10).

However under Django 1.9, it results in exceptions like:

AttributeError: 'FlexibleForeignKey' object has no attribute 'related_field'

...due to `related_field` being renamed to `target_field` in:
https://github.com/django/django/pull/4241
Attachment #8759196 - Flags: review?(james)
Attachment #8759196 - Flags: review?(james) → review+
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/f61a608237cf63ae8279a2d8c319edb5d7630f26
Bug 1277593 - Make FlexibleForeignKey compatible with Django 1.9

Since `related_field` was renamed to `target_field` in:
https://github.com/django/django/pull/4241

Fixes:
AttributeError: 'FlexibleForeignKey' object has no attribute 'related_field'
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: