Commits

Waldemar Kornewald committed 1ab1139

added note, so we don't keep workarounds forever

Comments (0)

Files changed (1)

djangotoolbox/fields.py

         if not isinstance(values, dict):
             return values
         module, model = values.pop('_module', None), values.pop('_model', None)
+
+        # TODO/XXX: Workaround for old Python releases. Remove this someday.
         # Let's make sure keys are instances of str
         values = dict([(str(k), v) for k,v in values.items()])
+
         if module is not None:
             return getattr(import_module(module), model)(**values)
         return self.embedded_model(**values)