-
Notifications
You must be signed in to change notification settings - Fork 10
Django 1.8 support #335
base: master
Are you sure you want to change the base?
Django 1.8 support #335
Conversation
Re-generating initial migration using 1.8 makemigrations command. Looking at the diff comparison with south, the output is actually pretty close, with some minor options changing format. Signed-off-by: Steven Githens <[email protected]>
Finishing API rename of get_query_set -> get_queryset. Finishing API rename of Meta options module_name -> model_name. Removing removed "+" idiom on model related_name. These remainders were detected by the serrano unit tests. Signed-off-by: Steven Githens <[email protected]>
@sgithens It appears the the other Django versions are not actually being tested. The reason this is happening is because you put a hard version in requirements.txt. Can you change this back to a range I am sure there will be an issue with 1.5 and it may be time to drop support for it, but I would like the tests to tell us that. Thanks! |
Signed-off-by: Steven Githens <[email protected]>
@bruth Updated, and all the builds except 1.8 failed. :) I wonder if maybe we should explore including post 1.8 versions to get a heads up on what issues we might encounter going forward. |
Signed-off-by: Steven Githens <[email protected]>
@sgithens From the Travis errors, 1.5 and 1.6 are failing because South is not installed. 1.7 is failing because modeltree 2.0.0 is being used and it should be 1.1.10 since 2.0.0 is 1.8 only (this is true for Django 1.5 and 1.6). Django 1.9 and 1.10 are failing due to a failed import presumably because it was deprecated in an earlier release.
On the call today, I think it is worth getting feedback on whether we should just cut over to 1.8+ for future development. We can increment new releases under the 3.x series to denote this change. |
Admin views must have an include or exclude in Meta. Changing commit_on_success to atomic Signed-off-by: Steven Githens <[email protected]>
I had incorrectly put the django.setup call at the top, such that the specific database flags weren't being used. Signed-off-by: Steven Githens <[email protected]>
Old version of guardian (presumably before 1.8 migrations) was failing to create it's DB tables on MySQL Signed-off-by: Steven Githens <[email protected]>
Looking at the travis output from this, and also from previous travis builds before the 1.8 work... it looks like travis was always only running the tests on sqlite, even if it was also creating the postgres and mysql databases. Unless I'm reading things wrong. Looking at making the test running run the actual tests against all the enabled databases, as well as 20 errors/failures that have appeared after I actually enabled MySQL locally. |
Checking for OperationalError 1094 when cancelling queries. If the query already finished, trying to kill it will throw an error. Signed-off-by: Steven Githens <[email protected]>
This is sort of lame, but I think we need to check for backticks and change them to double quotes. MySQL is alone in having it's own syntax, backticks `, for quoting names instead of using the sql standard double quote. There is a MySQL option to change to ansi quotes, however, it appears that in the django.db MySQL backend, it does generate statements using backticks, so we will have to check for it. https://github.com/django/django/blob/master/django/db/backends/mysql/operations.py#L115-L118 Signed-off-by: Steven Githens <[email protected]>
On MySQL these field keys often come is as type long rather than int. Signed-off-by: Steven Githens <[email protected]>
Signed-off-by: Steven Githens <[email protected]>
Finished fixing most of the MySQL issues, 2 fails and an error to go, and then fixing up the travis config to make sure it actually runs them on mysql/postgres in addition to sqlite. |
- Creating a matrix of environments to test each database one at a time. Looking for a better way to list these in travis.yml that isn't so hard on the eyes. - Removed exclusion for a python 2.6 configuration - Removed pre-django 1.8 versions, and added latest supported versions of 1.10 and 1.11. Not including 1.9 as it's out of support. Signed-off-by: Steven Githens <[email protected]>
No description provided.