Skip to content

Commit

Permalink
Remove use of LargeTablePaginator
Browse files Browse the repository at this point in the history
It does not bring significant speedups
  • Loading branch information
ffont committed Sep 14, 2023
1 parent 4814435 commit e262b6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions comments/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from django.contrib import admin

from accounts.admin import LargeTablePaginator
from comments.models import Comment


Expand All @@ -32,7 +31,6 @@ class CommentAdmin(admin.ModelAdmin):
list_select_related = ('user', 'sound')
list_filter = ('contains_hyperlink',)
search_fields = ('comment', '=user__username', '=sound__id')
paginator = LargeTablePaginator

@admin.display(description='Comment')
def get_comment_summary(self, obj):
Expand Down
3 changes: 0 additions & 3 deletions sounds/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from django.utils.safestring import mark_safe
from django_object_actions import DjangoObjectActions

from accounts.admin import LargeTablePaginator
from sounds.models import License, Sound, Pack, Flag, DeletedSound, SoundOfTheDay, BulkUploadProgress, SoundAnalysis


Expand Down Expand Up @@ -61,7 +60,6 @@ class SoundAdmin(DjangoObjectActions, admin.ModelAdmin):
readonly_fields = ('num_downloads', )
actions = ('reprocess_sound', )
change_actions = ('reprocess_sound', )
paginator = LargeTablePaginator

def has_add_permission(self, request):
return False
Expand Down Expand Up @@ -269,7 +267,6 @@ class SoundAnalysisAdmin(DjangoObjectActions, admin.ModelAdmin):
actions = ('re_run_analysis',)
change_actions = ('re_run_analysis',)
readonly_fields = []
paginator = LargeTablePaginator

def has_add_permission(self, request):
return False
Expand Down

0 comments on commit e262b6f

Please sign in to comment.