Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 777 Bytes

troubleshooting.rst

File metadata and controls

18 lines (13 loc) · 777 Bytes

Troubleshooting

If you have issues with the triggers that are installed by django-pghistory, we recommend reading django-pgtrigger's troubleshooting guide. It goes over most of the core issues that might happen when creating or migrating triggers.

A tracked field cannot be created

Special fields, such as Django's ImageField cannot be supplied some of the core field parameter overrides supplied, such as the primary_key attribute.

If a custom field errors because of invalid arguments, use settings.PGHISTORY_EXCLUDE_FIELD_KWARGS. See the settings section here <exclude_field_kwargs> for an example.