Skip to content

Commit bf7b453

Browse files
committed
Fixed the ModelTable docstring. Thanks philotas. Closes #2.
1 parent 41f8171 commit bf7b453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_tables/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class MyTable(ModelTable):
155155
class Meta:
156156
model = MyModel
157157
exclude = ['fields', 'to', 'exclude']
158-
fields = ['fields', 'to', 'include']
158+
columns = ['fields', 'to', 'include']
159159
160160
One difference to a normal table is the initial data argument. It can
161161
be a queryset or a model (it's default manager will be used). If you

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy