manage.py permissions rectified