django_hstore_widget.checks¶
Module Contents¶
- django_hstore_widget.checks.check_database_backend_is_postgres(app_configs, **kwargs)¶
System check that warns when the default DB backend is not PostgreSQL.
HStore requires the
hstoreextension, which is only available on PostgreSQL. This check runs duringmanage.py checkandmanage.py migrate.- Parameters:
app_configs (list) -- The application configurations being checked.
**kwargs -- Additional keyword arguments from the check runner.
- Returns:
A list containing a warning if the default database engine does not include
postgresorpostgis.- Return type:
list[Warning]