Update managers.py

Fixes for Django 1.6 (as of beta 1)