Skip to content

Commit

Permalink
fix: for using select related
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-zahedi committed May 15, 2024
1 parent 9d3f122 commit 7b14876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_telethon/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class EntityAdmin(admin.ModelAdmin):

@admin.action(description="Send a test message")
def send_a_test_message(self, request, queryset):
queryset = queryset.selected_related('client_session')
queryset = queryset.select_related('client_session')
for entity in queryset:
entity_id = entity.entity_id
# TODO: try to handle this method inside the package
Expand Down

0 comments on commit 7b14876

Please sign in to comment.