mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Refs #28329 -- Fixed Cast() with ForeignKey to integer fields on MySQL.
This commit is contained in:
committed by
Mariusz Felisiak
parent
254ad2e345
commit
de0c7744be
@@ -1162,6 +1162,9 @@ class ForeignKey(ForeignObject):
|
||||
def db_type(self, connection):
|
||||
return self.target_field.rel_db_type(connection=connection)
|
||||
|
||||
def cast_db_type(self, connection):
|
||||
return self.target_field.cast_db_type(connection=connection)
|
||||
|
||||
def db_parameters(self, connection):
|
||||
target_db_parameters = self.target_field.db_parameters(connection)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user