Commits

Mike Bayer committed 5aae4e7

- added selectfirst(), selectfirst_by() to assign_mapper [ticket:467]

  • Participants
  • Parent commits 88ccfc8

Comments (0)

Files changed (2)

       [ticket:472]
     - added optional __table_opts__ dictionary to ActiveMapper, will send kw
       options to Table objects [ticket:462]
+    - added selectfirst(), selectfirst_by() to assign_mapper [ticket:467]
 
 0.3.4
 - general:

File lib/sqlalchemy/ext/assignmapper.py

         extension = ctx.mapper_extension
     m = mapper(class_, extension=extension, *args, **kwargs)
     class_.mapper = m
-    for name in ['get', 'select', 'select_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options', 'instances']:
+    for name in ['get', 'select', 'select_by', 'selectfirst', 'selectfirst_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options', 'instances']:
         monkeypatch_query_method(ctx, class_, name)
     for name in ['flush', 'delete', 'expire', 'refresh', 'expunge', 'merge', 'save', 'update', 'save_or_update']:
         monkeypatch_objectstore_method(ctx, class_, name)