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
3cd8b0e0ea
commit
ab46e761c4
1 changed files with 4 additions and 4 deletions
|
|
@ -18,10 +18,10 @@ class AvatarAdmin(admin.ModelAdmin):
|
|||
|
||||
def get_avatar(self, avatar_in):
|
||||
context = {
|
||||
"user": avatar_in.user,
|
||||
"url": avatar_in.avatar.url,
|
||||
"alt": str(avatar_in.user),
|
||||
"size": 80,
|
||||
"user": avatar_in.user,
|
||||
"url": avatar_in.avatar.url,
|
||||
"alt": str(avatar_in.user),
|
||||
"size": 80,
|
||||
}
|
||||
return render_to_string("avatar/avatar_tag.html", context)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue