fromdjango.coreimportchecksfromdjango.db.backends.base.validationimportBaseDatabaseValidationclassDatabaseValidation(BaseDatabaseValidation):defcheck_field_type(self,field,field_type):"""Oracle doesn't support a database index on some data types."""errors=[]iffield.db_indexandfield_type.lower()inself.connection._limited_data_types:errors.append(checks.Warning("Oracle does not support a database index on %s columns."%field_type,hint=("An index won't be created. Silence this warning if ""you don't care about it."),obj=field,id="fields.W162",))returnerrors