def smart(**kwargs):
def decorator(func):<EOL><INDENT>for key, value in kwargs.items():<EOL><INDENT>setattr(func, key, value)<EOL><DEDENT>return func<EOL><DEDENT>return decorator<EOL>
Simple decorator to get custom fields on admin class, using this you will use less line codes

:param short_description: description of custom field
:type str:

:param admin_order_field: field to order on click
:type str:

:param allow_tags: allow html tags
:type bool:

:param boolean: if field is True, False or None
:type bool:

:param empty_value_display: Default value when field is null
:type str:

:return: method decorated
:rtype: method