Skip to content

Commit

Permalink
mibios/query: add only(), select_related() methods to ChainedQuerySet
Browse files Browse the repository at this point in the history
This fixes a regression, export of sample=-based taxabundance data works
again.
  • Loading branch information
robert102 committed Nov 22, 2024
1 parent fe6a325 commit 26743ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mibios/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,9 +1146,15 @@ def iterate(self, **kwargs):
def values_list(self, *args, **kwargs):
return self._apply_queryset_method('values_list', *args, **kwargs)

def only(self, *fields):
return self._apply_queryset_method('only', *fields)

def prefetch_related(self, *args, **kwargs):
return self._apply_queryset_method('prefetch_related', *args, **kwargs)

def select_related(self, *fields):
return self._apply_queryset_method('select_related', *fields)

def count(self):
"""
Not implemented but declared here to make class pass django_table2's
Expand Down

0 comments on commit 26743ed

Please sign in to comment.