Skip to content

Commit

Permalink
typo in method name
Browse files Browse the repository at this point in the history
I use to have ```AttributeError: 'QuerySet' object has no attribute 'Count'``` until I applied this patch
  • Loading branch information
bryan-brancotte committed May 25, 2018
1 parent f91b31d commit 99e6f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_datatables/pagination.py
Expand Up @@ -26,7 +26,7 @@ def get_count_and_total_count(self, queryset, view):
count = view._datatables_filtered_count
del view._datatables_filtered_count
else: # pragma: no cover
count = queryset.Count()
count = queryset.count()
if hasattr(view, '_datatables_total_count'):
total_count = view._datatables_total_count
del view._datatables_total_count
Expand Down

0 comments on commit 99e6f21

Please sign in to comment.