+class ActionQuerySet(CachedQuerySet):\r
+ def obj_from_datadict(self, datadict):\r
+ cls = ActionProxyMetaClass.types.get(datadict['action_type'], None)\r
+ if cls:\r
+ obj = cls()\r
+ obj.__dict__.update(datadict)\r
+ return obj\r
+ else:\r
+ return super(ActionQuerySet, self).obj_from_datadict(datadict)\r
+\r