Skip to content

Commit 932852d

Browse files
committed
Backward compatibility for collections.abc.Mapping
Per request of @chrisdev
1 parent 19453d0 commit 932852d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_pandas/io.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from collections.abc import Mapping
1+
try:
2+
from collections.abc import Mapping
3+
except ImportError:
4+
Mapping = dict
25

36
import pandas as pd
47
from .utils import update_with_verbose, get_related_model

0 commit comments

Comments
 (0)