Updated manage.py to use select