--- a/ckanext/example/forms.py +++ b/ckanext/example/forms.py @@ -136,7 +136,7 @@ already exist. """ self.vocab_name = u'example_vocab' - v = vocabulary.get(self.vocab_name) + v = model.Vocabulary.get(self.vocab_name) if not v: log.info("Adding vocab %s" % self.vocab_name) vocab = model.Vocabulary(self.vocab_name)