3YOURMIND / django-deprecate-fields

This package allows deprecating model fields and allows removing them in a backwards compatible manner.
Apache License 2.0
177 stars 20 forks source link

An option to raise an exception when a deprecated field is accessed #28

Closed fevral13 closed 1 year ago

fevral13 commented 1 year ago

Kind of additional argument raise_on_access: bool = False to the deprecate_field() function, that will instead of showing a warning, raise an exception when this field is somehow accessed.