projects
/
django-tables2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f8171
)
Fixed the ModelTable docstring. Thanks philotas. Closes #2.
author
Michael Elsdoerfer
<michael@elsdoerfer.com>
Tue, 18 May 2010 20:32:22 +0000
(22:32 +0200)
committer
Michael Elsdoerfer
<michael@elsdoerfer.com>
Tue, 18 May 2010 20:32:22 +0000
(22:32 +0200)
django_tables/models.py
patch
|
blob
|
history
diff --git
a/django_tables/models.py
b/django_tables/models.py
index e1085a6e1a451c12d3e38e84767f86987f38667a..eeb4ba7780c0752c5424bbe16c833328dcfb7640 100644
(file)
--- a/
django_tables/models.py
+++ b/
django_tables/models.py
@@
-155,7
+155,7
@@
class ModelTable(BaseTable):
class Meta:
\r
model = MyModel
\r
exclude = ['fields', 'to', 'exclude']
\r
-
field
s = ['fields', 'to', 'include']
\r
+
column
s = ['fields', 'to', 'include']
\r
\r
One difference to a normal table is the initial data argument. It can
\r
be a queryset or a model (it's default manager will be used). If you
\r