Skip to content

Commit

Permalink
Fix default value set at wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
mbourqui committed Jun 30, 2018
1 parent 08ef8a4 commit 5601721
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_icons/renderers/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ def __init__(self, *args, **kwargs):
k = vap.key
if k in kwargs:
self.variant_attributes[k] = kwargs[k]
elif vap.default:
self.variant_attributes[k] = vap.default

@classmethod
def get_image_root(cls):
Expand Down Expand Up @@ -232,3 +230,4 @@ def render(self):
path=src,
attrs=mark_safe(flatatt(attrs)) if attrs else "",
)

0 comments on commit 5601721

Please sign in to comment.