

def formfield(self, **kwargs):
    " Returns a django.forms.Field instance for this database field\n        which uses CronWidget for supporting gentle select UI.\n\n        Passing max_length to widgets.CronWidget means that the value's length\n        will be validated twice. This is considered acceptable since we want\n        the value in the form field (to pass into widget for example).\n\n        :param kwargs: dict, form field key word arguments\n        :return: django.forms.Field instance\n        "
    defaults = {
        'max_length': self.max_length,
        'widget': CronWidget,
    }
    defaults.update(kwargs)
    return super(CronField, self).formfield(**self)

dataset/ETHPy150Open saeedsq/django-fancy-cronfield/fancy_cronfield/fields.py CronField.formfield/VarMisuse@51/231 `defaults`->`self`