Commits

Marko Mrdjenovic committed 8e85247

py27 error

Comments (0)

Files changed (1)

delajozate/magnetogrami/models.py

 import os
 import re
 import dateutil.parser
-from collections import OrderedDict	
+try:
+	from collections import OrderedDict
+except ImportError:
+	from django.utils.datastructures import SortedDict as OrderedDict
 
 from django.db import models, transaction, connection
 from django.core.urlresolvers import reverse