app/soc/models/site_settings.py
changeset 181 fdd29818a954
parent 141 e120c24b89e2
child 206 832335761384
equal deleted inserted replaced
180:a1c6123f9d06 181:fdd29818a954
    19 __authors__ = [
    19 __authors__ = [
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    21 ]
    21 ]
    22 
    22 
    23 from google.appengine.ext import db
    23 from google.appengine.ext import db
       
    24 
    24 from django.utils.translation import ugettext_lazy
    25 from django.utils.translation import ugettext_lazy
    25 
    26 
    26 class SiteSettings(db.Model):
    27 from soc.models import base
       
    28 
       
    29 class SiteSettings(base.ModelWithFieldAttributes):
    27   """Model of a SiteSettings, which stores per site configuration."""
    30   """Model of a SiteSettings, which stores per site configuration."""
    28   
    31   
    29   #: Valid ATOM or RSS feed url or None if unused. Feed entries are shown 
    32   #: Valid ATOM or RSS feed url or None if unused. Feed entries are shown 
    30   #: on the site page using Google's JavaScript blog widget  
    33   #: on the site page using Google's JavaScript blog widget  
    31   feed_url = db.LinkProperty(
    34   feed_url = db.LinkProperty(