Skip to content

Commit cadd6c9

Browse files
authored
fix model's on_cascade= parameter for test, update to latest gdal (#247)
1 parent 041754f commit cadd6c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ jobs:
3737
script: 'isort --check --diff'
3838

3939
before_install: |
40-
sudo apt update
41-
sudo apt install binutils libproj-dev gdal-bin
40+
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
41+
sudo apt-get update
42+
sudo apt-get install -y binutils libproj-dev gdal-bin
4243
pip install -U pip setuptools wheel
4344
install: |
4445
pip install -r ./dev-requirements.txt

test-data/typecheck/fields/test_related.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
class User(models.Model):
100100
pass
101101
class Profile(models.Model):
102-
user = models.OneToOneField(to=User, on_delete=models)
102+
user = models.OneToOneField(to=User, on_delete=models.CASCADE)
103103
104104
- case: test_circular_dependency_in_imports_with_foreign_key
105105
main: |

0 commit comments

Comments
 (0)