app/soc/models/site_settings.py
changeset 206 832335761384
parent 181 fdd29818a954
child 385 6d410bf49a82
equal deleted inserted replaced
205:4a86df751222 206:832335761384
    18 
    18 
    19 __authors__ = [
    19 __authors__ = [
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    21 ]
    21 ]
    22 
    22 
       
    23 
    23 from google.appengine.ext import db
    24 from google.appengine.ext import db
    24 
    25 
    25 from django.utils.translation import ugettext_lazy
    26 from django.utils.translation import ugettext_lazy
    26 
    27 
    27 from soc.models import base
    28 import soc.models.home_settings
    28 
    29 
    29 class SiteSettings(base.ModelWithFieldAttributes):
    30 
       
    31 class SiteSettings(soc.models.home_settings.HomeSettings):
    30   """Model of a SiteSettings, which stores per site configuration."""
    32   """Model of a SiteSettings, which stores per site configuration."""
    31   
    33   # there is currently no site-specific configuration that is different from
    32   #: Valid ATOM or RSS feed url or None if unused. Feed entries are shown 
    34   # other /home page configuration (but this will change...)
    33   #: on the site page using Google's JavaScript blog widget  
    35   pass 
    34   feed_url = db.LinkProperty(
       
    35       verbose_name=ugettext_lazy('Feed URL'))
       
    36   feed_url.help_text = ugettext_lazy(
       
    37       'The URL should be a valid ATOM or RSS feed. '
       
    38       'Feed entries are shown on the site page.')
       
    39   
       
    40 
    36