mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-24 19:32:53 +03:00
Merge pull request #43 from SectorLabs/fix-test-on-django20
Fix test on django20
This commit is contained in:
commit
b27f1535ee
3
.gitignore
vendored
3
.gitignore
vendored
@ -19,3 +19,6 @@ dist/
|
||||
|
||||
# Ignore PyCharm
|
||||
.idea/
|
||||
|
||||
# Ignore tox environments
|
||||
.tox/
|
||||
|
@ -28,7 +28,7 @@ build:
|
||||
-
|
||||
command: flake8 ./localized_fields/
|
||||
-
|
||||
command: coverage run manage.py test
|
||||
command: tox
|
||||
coverage:
|
||||
file: '.coverage'
|
||||
format: 'py-cc'
|
||||
|
@ -1,6 +1,5 @@
|
||||
-r base.txt
|
||||
|
||||
Django==1.11.9
|
||||
django-autoslug==1.9.3
|
||||
django-bleach==0.3.0
|
||||
django-coverage-plugin==1.3.1
|
||||
@ -14,3 +13,4 @@ django-coverage-plugin==1.3.1
|
||||
flake8==3.5.0
|
||||
pep8==1.7.1
|
||||
dj-database-url==0.4.2
|
||||
tox==2.9.1
|
||||
|
@ -32,7 +32,7 @@ class LocalizedExpressionsTestCase(TestCase):
|
||||
cls.TestModel2 = get_fake_model(
|
||||
{
|
||||
'text': LocalizedField(),
|
||||
'other': models.ForeignKey(cls.TestModel1, related_name='features')
|
||||
'other': models.ForeignKey(cls.TestModel1, related_name='features', on_delete=models.CASCADE)
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -175,7 +175,7 @@ class LocalizedSlugFieldTestCase(TestCase):
|
||||
model = get_fake_model(
|
||||
{
|
||||
'title': LocalizedField(),
|
||||
'other': models.ForeignKey(model_fk),
|
||||
'other': models.ForeignKey(model_fk, on_delete=models.CASCADE),
|
||||
'slug': LocalizedUniqueSlugField(populate_from=('title', 'other.name'))
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user