Permalink
Browse files

Django 1.5: replace import of simple_class_factory with lambda

  • Loading branch information...
1 parent 4d79785 commit 92335051a7ffd1d2eb34350a0fa8d73668fa0df3 @tomscytale tomscytale committed Oct 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cms/models/pluginmodel.py
@@ -6,7 +6,7 @@
from django.conf import settings
from django.core.exceptions import ValidationError, ObjectDoesNotExist
from django.db import models
-from django.db.models.base import (model_unpickle, simple_class_factory)
+from django.db.models.base import model_unpickle
from django.db.models.query_utils import DeferredAttribute
from django.utils.translation import ugettext_lazy as _
@@ -125,7 +125,7 @@ def __reduce__(self):
obj = self.__class__.__dict__[field.attname]
model = obj.model_ref()
else:
- factory = simple_class_factory
+ factory = lambda x, y: x
return (model_unpickle, (model, defers, factory), data)
def __unicode__(self):

0 comments on commit 9233505

Please sign in to comment.