expire() column_property()s that are read-only expressions

Issue #887 resolved
Mike Bayer repo owner created an issue

i.e.

mapper(Foo, foo, properties={
    'fullname':column_property(foo.c.firstname + foo.c.lastname)
})

identify ColumnProperty objects that are read only expressions; this by the fact that the "column" is not present at all in mapped_table.c or its proxies. put those columnprops into their own _expressiontoproperty collection, and possibly dont put them into _columntoproperty either. at the end of save_obj() after tables have been iterated, expire all props in the _expressiontoproperty collection.

Comments (2)

  1. Log in to comment