Skip to content

Commit

Permalink
Small fix in definition name retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 15, 2019
1 parent 489d4dc commit 2d0390a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quorum/model.py
Expand Up @@ -978,9 +978,10 @@ def view(cls, name):
return views_m.get(name, None)

@classmethod
def definition_n(cls, name, default = {}):
def definition_n(cls, name):
definition = cls.definition_extended()
return definition.get(name, default)
if not name in definition: return {}
return definition[name]

@classmethod
def register(cls, lazy = False):
Expand Down

0 comments on commit 2d0390a

Please sign in to comment.