django-mysql
django-mysql copied to clipboard
Checks that use is_mariadb should check that django_mysql is an installed app first
Summary: @shanukus98765 reported an issue in #281 that was really caused by Django-MySQL not being in INSTALLED_APPS, we should make the checks that depend on is_mariadb first check if Django-MySQL is installed before trying to use this monkey-patched property.
Another idea is to stop monkey patching is_mariadb and instead just provide a function that takes the connection
#362 removed the monkey patch which has simplified things somewhat, but really we should be testing if the module is in INSTALLED_APPS too in case of future compatibility conflicts.