Refactored stuff

This commit is contained in:
Konsta Vesterinen
2013-08-26 18:01:48 +03:00
parent 523dacd0bb
commit 3e24683324

View File

@@ -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):