You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recommend displaying data from ForeignKey or OneToOne fields as string attributes using the display decorator to
avoid triggering database queries that will negatively affect performance Issue #16.
@admin.display('Genre')
def genre_name(self, obj):
# genre_name is field in the Collection. You can also store the object url as html
return obj.genre_name
PROBLEM
Data on the list view that come from ForeignKey or OneToOne fields trigger database calls
SOLUTION
They should be displayed using the data fetched from typesense hence no database calls should be made.
The text was updated successfully, but these errors were encountered: