generate installed_apps after importing /etc/patchman/settings.py
use correct syntax to delete m2m through object