Django-tables2

Latest version: v2.7.0

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 20

2.0.5

- Fixes issue with wrong time format for TimeColumn [650](https://github.com/jieter/django-tables2/pull/650) by [IgorCode](https://github.com/IgorCode)

2.0.4

- The `ValueError` raised if the QuerySet passed to a table instance did not match the value declared in `Meta.model` is now turned into a warning (fixes [643](https://github.com/jieter/django-tables2/issues/643))
- Make sure the templates do not raise errors when `thead`/`tfoot` attributes are not defined [624](https://github.com/jieter/django-tables2/pull/624) by [intiocean](https://github.com/intiocean)

2.0.3

- Improvements in packaging and publishing helper scripts reducing the package size considerably [630](https://github.com/jieter/django-tables2/pull/630) by [wtayyeb](https://github.com/wtayyeb) (fixes [#629](https://github.com/jieter/django-tables2/issues/629))
- Documentation improvements fixing [625](https://github.com/jieter/django-tables2/issues/625), [#631](https://github.com/jieter/django-tables2/issues/631)

2.0.2

- Make sure the value of the class attribute in `<th>` has consistent ordering (fixes [627](https://github.com/jieter/django-tables2/issues/627))
- Make sure that pagination block is available in template regardless of pagination status [622](https://github.com/jieter/django-tables2/pull/622) by [apocalyptech](https://github.com/apocalyptech)

2.0.1

- Fixed a regression which did not allow `Table.Meta.order_by` to be a list.

2.0.0

- Appearance of the paginators might be different from the current 1.x templates. Use a custom template if you need to keep the appearance the same.
- Removed the `template` argument to the table constructor, use `template_name` instead.
- Stopped adding column names to the class attribute of table cells (`<td>` tags) by default.
Previous behavior can be restored by using this method on your custom table:
python
class MyTable(tables.Table):
columns
def get_column_class_names(self, classes_set, bound_column):
classes_set = super(MyTable, self).get_column_class_names(classes_set, bound_column)
classes_set.add(bound_column.name)
return classes_set

- `verbose_name`s derived from model fields are not passed through `title()` anymore, only the first character is converted to upper case. This follows [Django's convention for verbose field names](https://docs.djangoproject.com/en/2.0/topics/db/models/#verbose-field-names): "The convention is not to capitalize the first letter of the verbose_name. Django will automatically capitalize the first letter where it needs to." (Fixes [475](https://github.com/jieter/django-tables2/issues/475) and [#491](https://github.com/jieter/django-tables2/issues/491))

Page 4 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.