(self, operation, app_label)
| 1279 | return "alter_%s_%s" % (self.model_name_lower, self.constraint.name.lower()) |
| 1280 | |
| 1281 | def reduce(self, operation, app_label): |
| 1282 | if ( |
| 1283 | isinstance(operation, (AlterConstraint, RemoveConstraint)) |
| 1284 | and self.model_name_lower == operation.model_name_lower |
| 1285 | and self.name == operation.name |
| 1286 | ): |
| 1287 | return [operation] |
| 1288 | return super().reduce(operation, app_label) |