Skip to content

Commit

Permalink
[admin] Exclude data from query when loading layers list.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Apr 9, 2024
1 parent 67c0baa commit a76da06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions robocjk/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ class GlifLayerAdmin(admin.ModelAdmin):
save_on_top = True
show_full_result_count = False

def get_queryset(self, request):
qs = super().get_queryset(request)
qs = qs.defer("data")
return qs


class GlifLayerInline(admin.TabularInline):
fields = (
Expand Down

0 comments on commit a76da06

Please sign in to comment.