Refactored stuff
This commit is contained in:
@@ -393,17 +393,11 @@ class ManyToOneFetcher(Fetcher):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def remote_column_names(self):
|
def remote_column_names(self):
|
||||||
names = []
|
return [remote.name for local, remote in self.prop.local_remote_pairs]
|
||||||
for local, remote in self.prop.local_remote_pairs:
|
|
||||||
names.append(remote.name)
|
|
||||||
return names
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def local_column_names(self):
|
def local_column_names(self):
|
||||||
names = []
|
return [local.name for local, remote in self.prop.local_remote_pairs]
|
||||||
for local, remote in self.prop.local_remote_pairs:
|
|
||||||
names.append(local.name)
|
|
||||||
return names
|
|
||||||
|
|
||||||
|
|
||||||
class OneToManyFetcher(Fetcher):
|
class OneToManyFetcher(Fetcher):
|
||||||
|
Reference in New Issue
Block a user