Cookbook¶
- General
- Parts & Pages
- Forms
- How do I specify which fields to show?
- How do I supply a custom parser for a field?
- How do I make a field non-editable?
- How do I make an entire form non-editable?
- How do I supply a custom validator?
- How do I validate multiple fields together?
- How do I exclude a field?
- How do I say which fields to include when creating a form from a model?
- How do I supply a custom initial value?
- How do I set if a field is required?
- How do I change the order of the fields?
- How do I specify which model fields the search of a choice_queryset use?
- How do I insert a CSS class or HTML attribute?
- How do I override rendering of an entire field?
- How do I override rendering of the input field?
- How do I change how fields are rendered everywhere in my project?
- How do I change where the form redirects to after completion?
- How do I make a fields choices depend on another field?
- How do I enable a reverse foreign key relationship?
- How do I set an initial value on a field that is not in the form?
- How do I group fields?
- How do I show a reverse many-to-many relationship?
- How do I nest multiple forms?
- How do I use templates for fields?
- How do I make a field that depends on the choice in another field?
- How do I make a create or edit form?
- How do I create a hidden field?
- Tables
- How do I customize the rendering of a table?
- How do you turn off pagination?
- How do I customize the rendering of a cell?
- How do I make a link in a cell?
- How do I create a column based on computed data (i.e. a column not based on an attribute of the row)?
- How do I get iommi tables to understand my Django ModelField subclasses?
- How do I reorder columns?
- How do I enable searching/filter on columns?
- How do I make a freetext search field?
- How do I customize HTML attributes, CSS classes or CSS style specifications?
- How do I customize the rendering of a row?
- How do I customize the rendering of a header?
- How do I turn off the header?
- How do I add fields to a table that is generated from a model?
- How do I specify which columns to show?
- How do I access table data programmatically (like for example to dump to json)?
- How do I access foreign key related data in a column?
- How do I turn off sorting? (on a column or table wide)
- How do I specify the title of a header?
- How do I set the default sort direction of a column to be descending instead of ascending?
- How do I set the default sorting column of a table?
- How do I group columns?
- How do I group rows?
- How do I get rowspan on a table?
- How do I enable bulk editing?
- How do I enable bulk delete?
- How do I make a custom bulk action?
- What is the difference between
attr
and_name
? - How do I show a reverse foreign key relationship?
- How do I show a reverse many-to-many relationship?
- How do I insert arbitrary html into a Table?
- How do I add custom actions/links to a table?
- How do I render additional rows?
- How do I set an initial filter to a table?
- How do I show row numbers?
- How do I show nested foreign key relationships?
- How do I stop rendering the header?
- How do I render a Table as divs?
- How do I do custom processing on rows before rendering?
- How do I set an empty message?
- Edit tables
- Queries
- Porting
- Main menu
- How do I control which menu items are shown for a user?
- How do I control the display name of a menu item?
- How do I add sub-paths for a menu item?
- How do I add external links in the menu?
- How do I nest menu items?
- How do I put arbitrary html in the menu?
- How do I show which specific object I am on in the menu?