                      "columns": self.quote_name(new_field.column),
                  }
              )
          # Does it have a foreign key?
          if getattr(new_field, "rel"):
              self.execute(
                  self.sql_create_fk % {
                      "table": self.quote_name(model._meta.db_table),
                      "name": self._create_index_name(model, [new_field.column], suffix="_fk"),
                      "column": self.quote_name(new_field.column),
 
</s> remove         if getattr(old_field, "rel"):
 </s> add         if old_field.rel: </s> remove                 if hasattr(field, "rel"):
                    if hasattr(field.rel, "to"):
 </s> add                 if field.rel:
                    if field.rel.to:
        if new_field.rel:
                      "columns": self.quote_name(new_field.column),
                  }
              )
          # Does it have a foreign key?
        if new_field.rel:
              self.execute(
                  self.sql_create_fk % {
                      "table": self.quote_name(model._meta.db_table),
                      "name": self._create_index_name(model, [new_field.column], suffix="_fk"),
                      "column": self.quote_name(new_field.column),
keep keep keep keep replace keep keep keep keep keep
 Stop being overcautious about Field.rel 
django/db/backends/schema.py