Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classes no longer added to table cells? From version #828

Closed
surfer190 opened this issue Jan 11, 2022 · 1 comment
Closed

Classes no longer added to table cells? From version #828

surfer190 opened this issue Jan 11, 2022 · 1 comment

Comments

@surfer190
Copy link

surfer190 commented Jan 11, 2022

I am doing an upgrade to django 3.2.x and had to upgrade django-tables 2 due to compatabilty - removing python2 support related I think.

Nonetheless, I notice now that my tests fails as the table cells no longer have the class set to the column name any longer - by default.

The Django-tables2 changelog and I did not find a relevant issue.

Previously using: django-tables2==1.19.0 - The cells looks like this:

<td class="task">Build</td>

Currently using: django-tables2==2.4.1 - the cell looks like this:

<td>Build</td>

I see an issue about supressing the class name but nothing about a setting regarding the default class to show.

I am using template_name = 'django_tables2/bootstrap-responsive.html'

Is there a setting to enable the classes again?

@surfer190
Copy link
Author

My problem...I didn't do enough searching. Eventually found the solution in the github changelog.md:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant