@classmethod
def sanitize_model(cls, instance):
    """
        This method is called, before the model is saved to the database. It can be overloaded to sanitize the current
        (_json) data dict of the instance.
        """
    if instance.data is None:
        instance.data = {}
