ae09ae78caa846e8c98ade9994c1192b38bd54c7
[django-tables2.git] / docs / types / memory.rst
1 -----------
2 MemoryTable
3 -----------
4
5 This table expects an iterable of ``dict`` (or compatible) objects as the
6 data source. Values found in the data that are not associated with a column
7 are ignored, missing values are replaced by the column default or ``None``.
8
9 Sorting is done in memory, in pure Python.
10
11 Dynamic Data
12 ~~~~~~~~~~~~
13
14 If any value in the source data is a callable, it will be passed it's own
15 row instance and is expected to return the actual value for this particular
16 table cell.
17
18 Similarily, the colunn default value may also be callable that will take
19 the row instance as an argument (representing the row that the default is
20 needed for).