Fix deprecated is_managed for Django 1.6