Supporting API changes in Django 1.10

* Since Django 1.10 there is no optparse (and no .args field) and no "usage()" method. All django manage py test failed.
This commit is contained in:
Ilya.Kazakevich
2016-08-04 02:52:16 +03:00
parent 878c7a09d7
commit df7df2d07e
@@ -62,6 +62,7 @@ def report_data(dumper, commands_to_skip):
command_name))
sys.exit(1)
use_argparse = False
# There is no optparse in 1.10
if _is_django_10():
use_argparse = True