Skip to content

Commit

Permalink
Add abstract base method
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 16, 2017
1 parent b0855e2 commit 7aae945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -726,8 +726,8 @@ def getValidQgisUniqueFields(self, onlyOne=False):
def tableDataModel(self, parent):
pass

def tableFieldsFactory(self):
return None
def tableFieldsFactory(self, row, table):
raise NotImplementedError('Needs to be implemented by subclasses')

def fields(self):
if self._fields is None:
Expand Down

0 comments on commit 7aae945

Please sign in to comment.