manage.py code update