Skip to content

Commit

Permalink
update t_feedadmin get_queryset function
Browse files Browse the repository at this point in the history
  • Loading branch information
versun authored May 16, 2024
1 parent 9e836fe commit fddb862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class T_FeedAdmin(admin.ModelAdmin, CustomModelActions):
# return queryset, use_distinct

def get_queryset(self, request):
return super().get_queryset(request).prefetch_related('o_feed__tags__name')
return super().get_queryset(request).prefetch_related('o_feed__tags')

def size_in_kb(self, obj):
return int(obj.size / 1024)
Expand Down

0 comments on commit fddb862

Please sign in to comment.