mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-08 23:54:44 +00:00
add self describe to assign_width_or_height function
This commit is contained in:
parent
431673aae0
commit
567b960019
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ class HTMLTagParser(HTMLParser):
|
|||
|
||||
|
||||
def assign_width_or_height(query_params):
|
||||
"""
|
||||
Getting width and height in url parameters and specifying them
|
||||
"""
|
||||
avatar_default_size = settings.AVATAR_DEFAULT_SIZE
|
||||
|
||||
width = query_params.get('width', avatar_default_size)
|
||||
|
|
|
|||
Loading…
Reference in a new issue