From: Michael Elsdoerfer Date: Tue, 18 May 2010 20:32:22 +0000 (+0200) Subject: Fixed the ModelTable docstring. Thanks philotas. Closes #2. X-Git-Tag: 0.2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf7b4533b6ef214aa92c9fbdd86040d97fbbf5b1;p=django-tables2.git Fixed the ModelTable docstring. Thanks philotas. Closes #2. --- 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