-
Notifications
You must be signed in to change notification settings - Fork 142
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
DatatableStructure object has no attribute code #54
Comments
I briefly tested the patch using one of the Django 1.7 betas and Python Cheers, Dan. On 23/07/14 15:58, David Fischer wrote:
|
Hello, I think it is quite obvious that the DatatableStructure does not have a "code" attribute. Please add a tox.ini to this project to make it more easy to run tests + enable Travis CI hook. |
Nice job :) On 23/07/14 19:50, David Fischer wrote:
|
You're welcome. I am lucky to find a project like this one for helping me doing awesome tables :-) |
I've only used it briefly so far, but yeah it's a really neat little tool :) In addition to the previous issue with Django 1.7 that I stumbled Cheers, Dan. On 23/07/14 20:07, David Fischer wrote:
|
You're awesome! I discovered few minutes ago that the table isn't responsive but my website is (thanks to Bootstrap 3). Eager to see your hack in action! Thanks, David |
Haha thank you but I'm really not, still relatively new to Python and All I did was chuck this Javascript in below the table: var update_size = function() { $(window).resize(function() { });I hope I'm safe in thinking it will be self-explanatory to you, but if Hope this helps :) Dan. On 23/07/14 20:34, David Fischer wrote:
|
Hey guys, sorry for the Django 1.7 issue. Looks like I confused the outcome of my testing of the code because 1.6 was the latest release and still included the (deprecated) I appreciate the pull request #55 to correct the issue. I've modified the strategy to avoid the Sorry again for the trouble! For your convenience, you can run the provided tests using the included example project (it contains a $ cd django-datatable-view
$ datatableview/tests/example_project/manage.py test You should know though that Django 1.7 changed some stuff about how apps are considered registered (something that is hacked in these tests to provide a separate set of test-only models), so the tests kind of blow up on the 1.7 release candidate right now. I need to sit down and work through that. Tests all pass on python 2 and python 3, if using Django 1.6 or earlier. |
Simply use
{{ datatable }}
with Django 1.7+ Python 3.4 and you will get a nice error.I guess that someone copy-pasted the class StrAndUnicode in utils.py from the project django_countries without actually testing it.
The text was updated successfully, but these errors were encountered: