From bf7b4533b6ef214aa92c9fbdd86040d97fbbf5b1 Mon Sep 17 00:00:00 2001 From: Michael Elsdoerfer Date: Tue, 18 May 2010 22:32:22 +0200 Subject: [PATCH] Fixed the ModelTable docstring. Thanks philotas. Closes #2. --- django_tables/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_tables/models.py b/django_tables/models.py index e1085a6..eeb4ba7 100644 --- a/django_tables/models.py +++ b/django_tables/models.py @@ -155,7 +155,7 @@ class ModelTable(BaseTable): class Meta: model = MyModel exclude = ['fields', 'to', 'exclude'] - fields = ['fields', 'to', 'include'] + columns = ['fields', 'to', 'include'] One difference to a normal table is the initial data argument. It can be a queryset or a model (it's default manager will be used). If you -- 2.26.2