Skip to content

Commit 6e31c71

Browse files
author
Agus Makmun
committed
feat: add autocomplete_fields test example #100
1 parent c392856 commit 6e31c71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

martor_demo/app/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class PostMetaStackedInline(admin.StackedInline):
1616

1717

1818
class PostAdmin(admin.ModelAdmin):
19+
autocomplete_fields = ["author"]
1920
inlines = [PostMetaAdminInline, PostMetaStackedInline]
2021
list_display = ["title", "id"]
2122
formfield_overrides = {

0 commit comments

Comments
 (0)