From 6f5c57833c185e71543cfd973c7b22e70bfa31f2 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Sat, 26 Jan 2013 15:51:50 -0800 Subject: [PATCH] Add doc note about setting db_index on StatusField; thanks Matt McClanahan for pointing this out. --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index e25a39f..15370cf 100644 --- a/README.rst +++ b/README.rst @@ -95,6 +95,12 @@ default value to the first item in the ``STATUS`` choices:: (The ``STATUS`` class attribute does not have to be a `Choices`_ instance, it can be an ordinary list of two-tuples). +``StatusField`` does not set ``db_index=True`` automatically; if you +expect to frequently filter on your status field (and it will have +enough selectivity to make an index worthwhile) you may want to add this +yourself. + + MonitorField ============