Made small simplification to admin_modify template tag logic
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
78c8be9218
commit
bfaff07990
|
@ -216,13 +216,8 @@ def register_one_arg_tag(node):
|
||||||
parse_func = curry(do_one_arg_tag, node)
|
parse_func = curry(do_one_arg_tag, node)
|
||||||
register.tag(tag_name, parse_func)
|
register.tag(tag_name, parse_func)
|
||||||
|
|
||||||
one_arg_tag_nodes = (
|
register_one_arg_tag(FieldWidgetNode)
|
||||||
FieldWidgetNode,
|
register_one_arg_tag(EditInlineNode)
|
||||||
EditInlineNode,
|
|
||||||
)
|
|
||||||
|
|
||||||
for node in one_arg_tag_nodes:
|
|
||||||
register_one_arg_tag(node)
|
|
||||||
|
|
||||||
#@register.inclusion_tag('admin/field_line', takes_context=True)
|
#@register.inclusion_tag('admin/field_line', takes_context=True)
|
||||||
def admin_field_line(context, argument_val):
|
def admin_field_line(context, argument_val):
|
||||||
|
|
Loading…
Reference in New Issue