From: Mike Bayer Date: Mon, 19 Feb 2007 07:06:38 +0000 (+0000) Subject: removed not-always-applicable check for "polymorphic_identity" X-Git-Tag: rel_0_3_5~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3055fe4ac3631761ad227ea2ea3111834fd2a7a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git removed not-always-applicable check for "polymorphic_identity" --- diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index 18c4c3acb8..4a46cc7d87 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -518,8 +518,6 @@ class Mapper(object): or through proxying relationships. Currently, non-column properties are *not* copied. this implies that a polymorphic mapper cant do any eager loading right now.""" if self.select_table is not self.mapped_table: - if self.polymorphic_identity is None: - raise exceptions.ArgumentError("Could not locate a polymorphic_identity field for mapper '%s'. This field is required for polymorphic mappers" % str(self)) props = {} if self.properties is not None: for key, prop in self.properties.iteritems():