Skip to content

Commit

Permalink
feat: add autocomplete_fields test example #100
Browse files Browse the repository at this point in the history
  • Loading branch information
Agus Makmun committed Mar 30, 2024
1 parent c392856 commit 6e31c71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions martor_demo/app/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class PostMetaStackedInline(admin.StackedInline):


class PostAdmin(admin.ModelAdmin):
autocomplete_fields = ["author"]
inlines = [PostMetaAdminInline, PostMetaStackedInline]
list_display = ["title", "id"]
formfield_overrides = {
Expand Down

0 comments on commit 6e31c71

Please sign in to comment.