SmileyChris / easy-thumbnails

Easy thumbnails for Django
http://easy-thumbnails.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1.39k stars 319 forks source link

Fix type argument in parser.add_argument for django > 1.8 #450

Closed miigotu closed 7 years ago

miigotu commented 7 years ago

argparse's type argument expects a callable, not a string representing a type Fixes Error parsing command thumbnail_cleanup: 'int' is not callable https://docs.python.org/3/library/argparse.html https://docs.python.org/2/library/argparse.html

@SmileyChris can you merge this please?

lechup commented 7 years ago

I've just wanted to create exactly the same PR. You were month faster @miigotu ;)

@SmileyChris :+1: for merging it to master.

wismill commented 7 years ago

+1

lechup commented 7 years ago

@SmileyChris, any chance to have it merged? Do You plan to release 2.4.2?