Skip to content

Pgtrigger's makemigrations misses trigger changes when also patched by django-pgviews-redux #225

Description

@pai-martinreidemeister

Probably the same issue as in #223.

When I add django-pgviews-redux, changes to the triggers are not recognized. When I create a new model with triggers I get an error:

ValueError: Cannot serialize: <pgtrigger.contrib.Protect object at 0x717e02a36a50>
There are some values Django cannot serialize into migration files.                                                                                                       
For more, see https://docs.djangoproject.com/en/6.0/topics/migrations/#migration-serializing

See also xelixdev/django-pgviews-redux#127

Maybe we find a workaround that can be added to the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions