Avoid SortedDict deprecation warning in django 1.7 (refs #16)