Skip to content

Commit

Permalink
Updated code examples to use py3 super call
Browse files Browse the repository at this point in the history
  • Loading branch information
markfinger authored Sep 3, 2020
1 parent 146dc40 commit 7a62164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ from instance_selector.blocks import InstanceSelectorBlock
class ProductBlock(InstanceSelectorBlock):
def __init__(self, *args, **kwargs):
target_model = kwargs.pop("target_model", "my_app.Product")
super(ProductBlock, self).__init__(target_model=target_model, **kwargs)
super().__init__(target_model=target_model, **kwargs)

class Meta:
icon = "image"
Expand Down

0 comments on commit 7a62164

Please sign in to comment.