django-rest-hooks icon indicating copy to clipboard operation
django-rest-hooks copied to clipboard

Fire hook on specific FIELD/s changed rather than any field

Open armando-herastang opened this issue 4 years ago • 1 comments

I´ll start by asking. Is it possible? I couldn't´t found a way to do that. I´ll explain what:

I have a model, say A with fields a, b, c. An instance of this model will be modified at some point. I would like to be able to set up a hook so it is only fired when field a or b are modified.

Is it possible to accomplish using current version? if not, it would be a good enhancement.

Greetings, and keep up the good work.

armando-herastang avatar Jun 10 '20 13:06 armando-herastang

@armando-herastang You would have to override the hook delivery method to add this logic. So currently library in its current form does not have this.

avelis avatar Jun 10 '20 14:06 avelis