MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / with_effective_values

Method with_effective_values

apps/channels/models.py:284–296  ·  view source on GitHub ↗

Chainable shortcut for the override-aware queryset annotations, delegating to the canonical helper in ``apps.channels.managers`` so the function form (``with_effective_values(qs)``) and the manager form (``Channel.objects.with_effective_values()``) are both v

(self, select_related_fks=False)

Source from the content-addressed store, hash-verified

282 return self.all()
283
284 def with_effective_values(self, select_related_fks=False):
285 """
286 Chainable shortcut for the override-aware queryset annotations,
287 delegating to the canonical helper in ``apps.channels.managers``
288 so the function form (``with_effective_values(qs)``) and the
289 manager form (``Channel.objects.with_effective_values()``) are
290 both valid entry points and stay in sync.
291 """
292 from apps.channels.managers import with_effective_values
293
294 return with_effective_values(
295 self.get_queryset(), select_related_fks=select_related_fks
296 )
297
298
299class Channel(models.Model):

Calls 2

with_effective_valuesFunction · 0.90
get_querysetMethod · 0.45