drf-tracking
drf-tracking copied to clipboard
Toggle logging of certain fields
Is there currently a way to enable/disable (toggling) logging of certain fields? For example, if I didn't want to capture the logging of response
field. Would that be possible currently? TIA.
@whippersnapper As far as I know there isn't a way to set that via a settings file. However, I can strip out the response data via Django model's pre_save
signal.
@whippersnapper The best suggestion for this kind of approach is to use a pre_save signal, or make a PR that creates a pre-save-processor before the actual save.
@avelis Thanks for the fast feedback.