Changeset 510 for elixir/trunk/elixir

Show
Ignore:
Timestamp:
11/09/09 12:56:31 (3 years ago)
Author:
ged
Message:

- Fixed having relationships in custom base classes (based on patch

by Stéphane Klein)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/entity.py

    r509 r510  
    88import warnings 
    99 
    10 from copy import copy 
     10from copy import deepcopy 
    1111 
    1212import sqlalchemy 
     
    718718        base_props = getmembers(entity_base, 
    719719                                lambda a: isinstance(a, Property)) 
    720         base_props = [(name, copy(attr)) for name, attr in base_props] 
     720        base_props = [(name, deepcopy(attr)) for name, attr in base_props] 
    721721    else: 
    722722        base_props = []