(self, loader, app_label, name)
| 239 | ) |
| 240 | |
| 241 | def find_migration(self, loader, app_label, name): |
| 242 | try: |
| 243 | return loader.get_migration_by_prefix(app_label, name) |
| 244 | except AmbiguityError: |
| 245 | raise CommandError( |
| 246 | "More than one migration matches '%s' in app '%s'. Please be " |
| 247 | "more specific." % (name, app_label) |
| 248 | ) |
| 249 | except KeyError: |
| 250 | raise CommandError( |
| 251 | "Cannot find a migration matching '%s' from app '%s'." |
| 252 | % (name, app_label) |
| 253 | ) |
no test coverage detected