nested_admin.templatetags package¶
Submodules¶
nested_admin.templatetags.nested_admin module¶
Bases:
django.template.base.Node
Returns the number of cells used in a tabular inline
The id of the root ‘form’ element in a formset is the form’s ‘prefix’ without the ‘-‘ preceding the index of the form. So, for instance, in a case where the form’s ‘id’ field has the field name:
prefix-2-idthe ‘form’ element’s id would be:
prefix2and the form’s index is ‘2’
Takes a list of formset dicts, returns that list sorted by the sortable field.
Decorator. Registers function as a simple_tag. Try: Return value of the decorated function json encoded. Except: Return []