@any_field.register(models.DecimalField)
def any_decimal_field(field, **kwargs):
    min_value = kwargs.get('min_value', 0)
    max_value = kwargs.get('max_value',
                           Decimal('%s.%s' % ('9'*(field.max_digits-field.decimal_places),
                                              '9'*field.decimal_places)))
    decimal_places = kwargs.get('decimal_places', field.decimal_places)
    return xunit.any_decimal(min_value=min_value, max_value=max_value,
                             decimal_places = decimal_places)
Returns product category based on actual categories of the given product
dataset/ETHPy150Open kmmbvnr/django-any/django_any/models.py/any_decimal_field--crossover with--dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_current_category