realted product

This commit is contained in:
Parsa Nazer
2025-02-01 21:50:31 +03:30
parent bc1cdc1abd
commit ae5d167894
3 changed files with 21 additions and 2 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ class ProductModelAdmin(ModelAdmin, ImportExportModelAdmin):
export_form_class = ExportForm
inlines = [InStuckColorsInLine]
readonly_fields = ('slug', )
search_fields = ['name']
autocomplete_fields = ['related_products']
compressed_fields = True
warn_unsaved_form = True