feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
43 stars 38 forks source link

Import Error: cannot import name 'SortedDict' #52

Closed l-monnier closed 8 years ago

l-monnier commented 8 years ago

Hello,

With Django 1.9, when running the page extension, I got the following error:

Import Error: cannot import name 'SortedDict'

This error is discussed here: https://github.com/aljosa/django-tinymce/issues/114

The solution would be to replace on line 4 of file feincms-elephantblog/elephantblog/navigation_extensions/common.py:

from django.utils.datastructures import SortedDict

by

from collections import OrderedDict as SortedDict
matthiask commented 8 years ago

Thanks! We should probably just drop compatibility with Python<2.7.