Fetch exactly one object matching the parameters.
(self, *args: Q, **kwargs: Any)
| 849 | return queryset._as_single() |
| 850 | |
| 851 | def get(self, *args: Q, **kwargs: Any) -> QuerySetSingle[MODEL]: |
| 852 | """ |
| 853 | Fetch exactly one object matching the parameters. |
| 854 | """ |
| 855 | queryset = self.filter(*args, **kwargs) |
| 856 | queryset._limit = 2 |
| 857 | queryset._single = True |
| 858 | queryset._raise_does_not_exist = True |
| 859 | return queryset # type: ignore |
| 860 | |
| 861 | async def in_bulk( |
| 862 | self, id_list: Iterable[PRIMARY_KEY], field_name: str |
no test coverage detected