[bug 963088] Fix deprecation warnings in manage.py