mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 20:09:17 +02:00
Plugins infrastructure
This commit is contained in:
parent
9964adfbf6
commit
d4028450a9
32 changed files with 1560 additions and 47 deletions
|
@ -103,7 +103,9 @@ class UserQuerySet(models.QuerySet):
|
|||
user=models.OuterRef("id"), primary=True
|
||||
).values("verified")[:1]
|
||||
subquery = models.Subquery(verified_emails)
|
||||
return qs.annotate(has_verified_primary_email=subquery)
|
||||
return qs.annotate(has_verified_primary_email=subquery).prefetch_related(
|
||||
"plugins"
|
||||
)
|
||||
|
||||
|
||||
class UserManager(BaseUserManager):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue