(self, *fixture_labels, **options)
| 90 | ) |
| 91 | |
| 92 | def handle(self, *fixture_labels, **options): |
| 93 | self.ignore = options["ignore"] |
| 94 | self.using = options["database"] |
| 95 | self.app_label = options["app_label"] |
| 96 | self.verbosity = options["verbosity"] |
| 97 | self.excluded_models, self.excluded_apps = parse_apps_and_model_labels( |
| 98 | options["exclude"] |
| 99 | ) |
| 100 | self.format = options["format"] |
| 101 | |
| 102 | with transaction.atomic(using=self.using): |
| 103 | self.loaddata(fixture_labels) |
| 104 | |
| 105 | # Close the DB connection -- unless we're still in a transaction. This |
| 106 | # is required as a workaround for an edge case in MySQL: if the same |
| 107 | # connection is used to create tables, load data, and query, the query |
| 108 | # can return incorrect results. See Django #7572, MySQL #37735. |
| 109 | if transaction.get_autocommit(self.using): |
| 110 | connections[self.using].close() |
| 111 | |
| 112 | @cached_property |
| 113 | def compression_formats(self): |
nothing calls this directly
no test coverage detected