We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First of all kudos for django-datatable-view, i find it really helpful !
Now, I have found a bug when I tried to use it with python 2.6. In the file datatableview/helpers.py, line 86 there is the following code
datatableview/helpers.py
return u"""<a href="{}">{}</a>""".format(instance.get_absolute_url(), text)
However, empty placeholders for format are not allowed in python 2.6 (it throws a ValueError: zero length field name in format, also check the answer to this SO question http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python) - in 2.7 it is working fine.
I was able to fix it by changing the above line to:
return u"""<a href="{0}">{1}</a>""".format(instance.get_absolute_url(), text)
I'd really appreciate it if you apply the fix and put the new version in your pip repository.
Best regards, Serafeim
The text was updated successfully, but these errors were encountered:
4e8c495
This will go out in a pip release shortly. Thanks for the report!
Sorry, something went wrong.
No branches or pull requests
First of all kudos for django-datatable-view, i find it really helpful !
Now, I have found a bug when I tried to use it with python 2.6. In the file
datatableview/helpers.py
, line 86 there is the following codereturn u"""<a href="{}">{}</a>""".format(instance.get_absolute_url(), text)
However, empty placeholders for format are not allowed in python 2.6 (it throws a ValueError: zero length field name in format, also check the answer to this SO question http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python) - in 2.7 it is working fine.
I was able to fix it by changing the above line to:
return u"""<a href="{0}">{1}</a>""".format(instance.get_absolute_url(), text)
I'd really appreciate it if you apply the fix and put the new version in your pip repository.
Best regards,
Serafeim
The text was updated successfully, but these errors were encountered: