diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-20 18:25:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-20 18:25:26 +0000 |
commit | d8ca865f17e466dcc311ca687707e2f1afbf9f0d (patch) | |
tree | 6ae6cfe047c366c33568d5b2e2e60376b9cbe29d /lib/sqlalchemy/ext/assignmapper.py | |
parent | 0b7557a30a94b38c816499dc7e854214120b68cf (diff) | |
download | sqlalchemy-d8ca865f17e466dcc311ca687707e2f1afbf9f0d.tar.gz |
assignmapper was setting is_primary=True, causing all sorts of mayhem
by not raising an error when redundant mappers were set up, fixed
Diffstat (limited to 'lib/sqlalchemy/ext/assignmapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/assignmapper.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py index 240a46e3b..5b77052e2 100644 --- a/lib/sqlalchemy/ext/assignmapper.py +++ b/lib/sqlalchemy/ext/assignmapper.py @@ -17,7 +17,6 @@ def monkeypatch_objectstore_method(ctx, class_, name): setattr(class_, name, do) def assign_mapper(ctx, class_, *args, **kwargs): - kwargs.setdefault("is_primary", True) if not isinstance(getattr(class_, '__init__'), types.MethodType): def __init__(self, **kwargs): for key, value in kwargs.items(): |