dont prefetch queryset changes, we'll only query them once anyway
This commit is contained in:
parent
223a0e57df
commit
4f82c52252
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class ChangeSet(models.Model):
|
|||
|
||||
@classmethod
|
||||
def qs_base(cls, hide_applied=True):
|
||||
qs = cls.objects.prefetch_related('changes').select_related('author')
|
||||
qs = cls.objects.select_related('author')
|
||||
if hide_applied:
|
||||
qs = qs.filter(applied__isnull=True)
|
||||
return qs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue