mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-13 22:26:01 +00:00
use typing.Self for custom queryset methods
This commit is contained in:
1 parent
d04b4c77c6
commit
6962b39fc9
3 files changed
+7
-7
No files matched your search
@@ -362,7 +362,6 @@ class CounterQuerySet(models.QuerySet):
|
||||
```
|
||||
"""
|
||||
subquery = user.counters.filter(pk=OuterRef("pk"))
|
||||
# noinspection PyTypeChecker
|
||||
return self.annotate(has_annotated_barman=Exists(subquery))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user