mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
fix model's on_cascade= parameter for test, update to latest gdal (#247)
This commit is contained in:
@@ -37,8 +37,9 @@ jobs:
|
|||||||
script: 'isort --check --diff'
|
script: 'isort --check --diff'
|
||||||
|
|
||||||
before_install: |
|
before_install: |
|
||||||
sudo apt update
|
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
|
||||||
sudo apt install binutils libproj-dev gdal-bin
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y binutils libproj-dev gdal-bin
|
||||||
pip install -U pip setuptools wheel
|
pip install -U pip setuptools wheel
|
||||||
install: |
|
install: |
|
||||||
pip install -r ./dev-requirements.txt
|
pip install -r ./dev-requirements.txt
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
class User(models.Model):
|
class User(models.Model):
|
||||||
pass
|
pass
|
||||||
class Profile(models.Model):
|
class Profile(models.Model):
|
||||||
user = models.OneToOneField(to=User, on_delete=models)
|
user = models.OneToOneField(to=User, on_delete=models.CASCADE)
|
||||||
|
|
||||||
- case: test_circular_dependency_in_imports_with_foreign_key
|
- case: test_circular_dependency_in_imports_with_foreign_key
|
||||||
main: |
|
main: |
|
||||||
|
|||||||
Reference in New Issue
Block a user