diff --git a/README.md b/README.md index c146cb331..5ecf35da0 100644 --- a/README.md +++ b/README.md @@ -651,7 +651,16 @@ class UserAdmin(ModelAdmin): """ Third argument is short text which will appear as prefix in circle """ - return "First main heading", "Smaller additional description", "AB" + return [ + "First main heading", + "Smaller additional description", # Use None in case you don't need it + "AB", # Short text which will appear in front of + # Image instead of initials. Initials are ignored if image is available + { + "path": "some/path/picture.jpg, + "squared": True, # Picture is displayed in square format, if empty circle + } + ] ``` ## Change form tabs diff --git a/src/unfold/templates/unfold/helpers/display_header.html b/src/unfold/templates/unfold/helpers/display_header.html index 8b48cdde2..9a411da10 100644 --- a/src/unfold/templates/unfold/helpers/display_header.html +++ b/src/unfold/templates/unfold/helpers/display_header.html @@ -1,17 +1,20 @@
- {{ value.1 }} -
- {% endif %} -+ {{ value.1 }} +
+ {% endif %} +