text: # -*- coding: utf-8 -*-
  #########################################################################
  #
  # Copyright (C) 2020 OSGeo
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
  #
  #########################################################################
  import logging
  
  from django.db import models
  from django.conf import settings
  from django.db.models import signals
  from django.utils.translation import ugettext_lazy as _
  
  from geonode.geoapps.models import GeoApp
  from geonode.base.models import resourcebase_post_save
  
  logger = logging.getLogger(__name__)
  
  
  class GeoStory(GeoApp):
  
      app_type = models.CharField(
          _('%s Type' % settings.GEONODE_APPS_NAME),
          db_column='geostory_app_type',
          default='GeoStory',
          max_length=255)
      # The type of the current geoapp.
  
  
  signals.post_save.connect(resourcebase_post_save, sender=GeoStory)
  