mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-21 13:51:53 +00:00
Added forgotten user variable to avatar tag template context.
This commit is contained in:
parent
ed51251885
commit
7d0ba11d11
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ def avatar(user, size=AVATAR_DEFAULT_SIZE):
|
|||
alt = unicode(user)
|
||||
url = avatar_url(user, size)
|
||||
return {
|
||||
'user': user,
|
||||
'url': url,
|
||||
'alt': alt,
|
||||
'size': size,
|
||||
|
|
|
|||
Loading…
Reference in a new issue