(self, operation, app_label)
| 343 | ) |
| 344 | |
| 345 | def reduce(self, operation, app_label): |
| 346 | if ( |
| 347 | isinstance(operation, RenameField) |
| 348 | and self.is_same_model_operation(operation) |
| 349 | and self.new_name_lower == operation.old_name_lower |
| 350 | ): |
| 351 | return [replace(self, new_name=operation.new_name)] |
| 352 | # Skip `FieldOperation.reduce` as we want to run `references_field` |
| 353 | # against self.old_name and self.new_name. |
| 354 | return super(FieldOperation, self).reduce(operation, app_label) or not ( |
| 355 | operation.references_field(self.model_name, self.old_name, app_label) |
| 356 | or operation.references_field(self.model_name, self.new_name, app_label) |
| 357 | ) |
nothing calls this directly
no test coverage detected