mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-29 18:18:57 +03:00
Use collections.abc.Iterable instead of collections.Iterable
The latter is going to be removed after Python 3.8
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import deprecation
|
||||
import collections
|
||||
|
||||
from typing import Optional
|
||||
from collections.abc import Iterable
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils import translation
|
||||
|
||||
@@ -97,7 +98,7 @@ class LocalizedValue(dict):
|
||||
lang_value = value.get(lang_code, self.default_value)
|
||||
self.set(lang_code, lang_value)
|
||||
|
||||
elif isinstance(value, collections.Iterable):
|
||||
elif isinstance(value, Iterable):
|
||||
for val in value:
|
||||
self._interpret_value(val)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user