def formfield_for_dbfield(self, db_field, **kwargs):
        field = super(FilePickerAdmin, self).formfield_for_dbfield(
            db_field, **kwargs)
        if db_field.name in self.adminfiles_fields:
            try:
                field.widget.attrs['class'] += " adminfilespicker"
            except __HOLE__:
                field.widget.attrs['class'] = 'adminfilespicker'
        return field
dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/admin.py/FilePickerAdmin.formfield_for_dbfield