mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e8fa4747f9
commit
c8bcdb4a0c
2 changed files with 6 additions and 7 deletions
|
|
@ -88,10 +88,10 @@ class InitialsAvatarProvider(object):
|
|||
initials = user.username[:1]
|
||||
initials = initials.upper()
|
||||
context = {
|
||||
'fontsize': (size * 1.1) / 2,
|
||||
'initials': initials,
|
||||
'hue': user.pk % 360,
|
||||
'saturation': '65%',
|
||||
'lightness': '60%',
|
||||
"fontsize": (size * 1.1) / 2,
|
||||
"initials": initials,
|
||||
"hue": user.pk % 360,
|
||||
"saturation": "65%",
|
||||
"lightness": "60%",
|
||||
}
|
||||
return ('avatar/initials.html', context)
|
||||
return ("avatar/initials.html", context)
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@
|
|||
{{ kwargs.style }}'
|
||||
{% for key, value in kwargs.items %}{% if key != 'style' %}{{ key }}="{{ value }}" {% endif %}{% endfor %}>
|
||||
{{ initials }}</span>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue