Skip to content

Override the model_dict method#46

Open
etchegom wants to merge 1 commit intodanihodovic:masterfrom
etchegom:feat/override-model-dict
Open

Override the model_dict method#46
etchegom wants to merge 1 commit intodanihodovic:masterfrom
etchegom:feat/override-model-dict

Conversation

@etchegom
Copy link
Contributor

This pull request adds support for customizing the serialization of Django model instance in webhook payload, by allowing a user-defined serializer function via the MODEL_SERIALIZER setting. It also includes refactoring and new tests to ensure correct behavior.

That allows reusing any existing serializer method already in place in your project, such as DRF, pydantic or whatever, as suggested in this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant