(self, *args, **kwargs)
Assign default args to this field.
Assign default args to this field.
Assign default args to this field .
def __init__(self, *args, **kwargs):
        """Assign default args to this field."""
        defaults = {
            "decimal_places": 2,
            "max_digits": 5,
            "validators": [MinValueValidator(1), MaxValueValidator(100)],
        }
        defaults.update(kwargs)
        super().__init__(*args, **defaults)
def __init__ ( self , * args , * * kwargs ) : defaults = { "decimal_places" : 2 , "max_digits" : 5 , "validators" : [ MinValueValidator ( 1 ) , MaxValueValidator ( 100 ) ] , } defaults . update ( kwargs ) super ( ) . __init__ ( * args , * * defaults )