fix warning about table model (#86371)
tests/test_public.py::test_upload tests/test_public.py::test_upload_max_size tests/test_public.py::test_upload_max_document_box_size tests/test_public.py::test_pick tests/test_public.py::test_pick_url_check tests/test_public.py::test_delete tests/test_public.py::test_max_documents_per_user tests/test_public.py::test_forbidden_extension /home/bdauvergne/.tmp/tox-bdauvergne/fargo/py3-dj32/lib/python3.11/site-packages/django_tables2/data.py:163: UserWarning: Table data is of type <class 'fargo.fargo.models.UserDocument'> but <class 'fargo.fargo.models.Document'> is specified in Table.Meta.model
This commit is contained in:
parent
61c10e4f2d
commit
97119cf4d4
|
@ -31,6 +31,6 @@ class DocumentTable(tables.Table):
|
|||
created = tables.DateTimeColumn(verbose_name=_('Creation Date'))
|
||||
|
||||
class Meta:
|
||||
model = models.Document
|
||||
model = models.UserDocument
|
||||
fields = ('size', 'created')
|
||||
empty_text = _('Your document box is currently empty.')
|
||||
|
|
Loading…
Reference in New Issue