Support uninstalled django-generic-m2m