Skip to content

Commit

Permalink
Update the cookbook.rst file to store the inlines as a list consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
chander committed Sep 16, 2022
1 parent 6786505 commit 7f8a990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cookbook.rst
Expand Up @@ -609,7 +609,7 @@ their own.:


class UserModelAdmin(UserAdmin):
inlines = UserAdmin.inlines + [ApiKeyInline]
inlines = list(UserAdmin.inlines) + [ApiKeyInline]


admin.site.unregister(User)
Expand Down

0 comments on commit 7f8a990

Please sign in to comment.