Code

Ticket #7306: db_missing_import.diff

File db_missing_import.diff, 759 bytes (added by SmileyChris, 6 years ago)
Line 
1Index: django/db/models/fields/related.py
2===================================================================
3--- django/db/models/fields/related.py  (revision 7543)
4+++ django/db/models/fields/related.py  (working copy)
5@@ -1,6 +1,6 @@
6 from django.db import connection, transaction
7 from django.db.models import signals, get_model
8-from django.db.models.fields import AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, get_ul_class
9+from django.db.models.fields import AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, get_ul_class, FieldDoesNotExist
10 from django.db.models.related import RelatedObject
11 from django.db.models.query_utils import QueryWrapper
12 from django.utils.text import capfirst