File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ class AutoPopulate:
26
26
@property
27
27
def key_source (self ):
28
28
"""
29
- :return: the relation whose primary key values are passed, sequentially, to the
29
+ :return: the query expression whose primary key values are passed, sequentially, to the
30
30
``make`` method when populate() is called.
31
31
The default value is the join of the parent relations.
32
32
Users may override to change the granularity or the scope of populate() calls.
33
33
"""
34
34
def _rename_attributes (table , props ):
35
35
return (table .proj (
36
36
** {attr : ref for attr , ref in props ['attr_map' ].items () if attr != ref })
37
- if props ['aliased' ] else table )
37
+ if props ['aliased' ] else table . proj () )
38
38
39
39
if self ._key_source is None :
40
40
parents = self .target .parents (primary = True , as_objects = True , foreign_key_info = True )
You can’t perform that action at this time.
0 commit comments