(self)
| 366 | super().__init__(model_name, related_name, on_delete, unique=True, **kwargs) |
| 367 | |
| 368 | def deconstruct(self) -> tuple[str, list[Any], dict[str, Any]]: |
| 369 | path, args, kwargs = super().deconstruct() |
| 370 | # unique=True is set implicitly by OneToOneField.__init__ |
| 371 | kwargs.pop("unique", None) |
| 372 | return path, args, kwargs |
| 373 | |
| 374 | |
| 375 | class BackwardOneToOneRelation(BackwardFKRelation[MODEL]): |
nothing calls this directly
no outgoing calls
no test coverage detected