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

Empty text cannot be translated? #579

Closed
vincentwhales opened this issue May 24, 2018 · 2 comments
Closed

Empty text cannot be translated? #579

vincentwhales opened this issue May 24, 2018 · 2 comments

Comments

@vincentwhales
Copy link

I have the following:

class TaskTable(tables.Table):
...
    class Meta:
        model = Task
        empty_text = _('There are no tasks matching your criteria.')

I am getting TypeError: TaskTable.empty_text = 'There are no tasks matching your criteria.' (type __proxy__), but type must be one of (str) Any ideas?

@jieter
Copy link
Owner

jieter commented May 24, 2018

You are right, this should be possible and is a recent regression. I'm working on a fix.

@jieter jieter closed this as completed in 6d32439 May 24, 2018
jieter added a commit that referenced this issue May 24, 2018
@jieter
Copy link
Owner

jieter commented May 24, 2018

released 2.0.0a3

akennedy90 pushed a commit to akennedy90/django-tables2 that referenced this issue May 25, 2018
akennedy90 pushed a commit to akennedy90/django-tables2 that referenced this issue May 25, 2018
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

2 participants