old_contents: from pylons import config
  from paste.deploy.converters import asbool
  from adhocracy import model
  from adhocracy.lib.helpers import site_helper as _site
  
  def is_configured():
      configured = asbool(config.get('adhocracy.use_feedback_instance'))
      available = get_feedback_instance() is not None
      return configured and available
  
  def get_feedback_instance():
      return model.Instance.find(config.get('adhocracy.feedback_instance_key'))
  
  def get_categories():
      feedback_instance = get_feedback_instance()
      return model.CategoryBadge.all(feedback_instance, include_global=False)
  
  def get_proposal_url():
      return _site.base_url(get_feedback_instance(), path=u'/proposal')
  
new_contents: from pylons import config
  from paste.deploy.converters import asbool
  from adhocracy import model
  from adhocracy.lib.helpers import site_helper as _site
  
  def is_configured():
      configured = asbool(config.get('adhocracy.use_feedback_instance'))
      available = get_feedback_instance() is not None
      return configured and available
  
  def get_feedback_instance():
      return model.Instance.find(config.get('adhocracy.feedback_instance_key',
                                            u'feedback'))
  
  def get_categories():
      feedback_instance = get_feedback_instance()
      return model.CategoryBadge.all(feedback_instance, include_global=False)
  
  def get_proposal_url():
      return _site.base_url(get_feedback_instance(), path=u'/proposal')
  
subject: Add feedback_instance_key default fallback