mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 11:42:54 +03:00
fix tests on Django 2.0
This commit is contained in:
parent
bf0383d742
commit
6a4beca193
@ -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