Skip to content

Commit

Permalink
Merge 9c99d1a into b72bac9
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasyl Dizhak committed Dec 24, 2019
2 parents b72bac9 + 9c99d1a commit 796110e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sorl/thumbnail/admin/current.py
Expand Up @@ -57,8 +57,8 @@ class AdminImageMixin(object):
show nicer form widget
"""

def formfield_for_dbfield(self, db_field, **kwargs):
def formfield_for_dbfield(self, db_field, request, **kwargs):
if isinstance(db_field, ImageField):
return db_field.formfield(widget=AdminImageWidget)
sup = super(AdminImageMixin, self)
return sup.formfield_for_dbfield(db_field, **kwargs)
return sup.formfield_for_dbfield(db_field, request, **kwargs)

0 comments on commit 796110e

Please sign in to comment.