Update foreign key references for django 2.0. This change was made in Django core 3 years ago.
This commit is contained in:
parent
e842988f18
commit
927d762daf
|
@ -23,7 +23,7 @@ def has_int_pk(model):
|
|||
isinstance(pk, (models.IntegerField, models.AutoField)) and
|
||||
not isinstance(pk, models.BigIntegerField)
|
||||
) or (
|
||||
isinstance(pk, models.ForeignKey) and has_int_pk(pk.rel.to)
|
||||
isinstance(pk, models.ForeignKey) and has_int_pk(pk.remote_field.model)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue