]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/view.py
Django 1.3 fix.
[osqa.git] / forum / settings / view.py
index 1eb44b08a8639cf643304e5588c0b4e5df46e338..fa6edf3d62dd3ba91722e81360bb79dd113df780 100644 (file)
@@ -4,6 +4,10 @@ from django.utils.translation import ugettext_lazy as _
 """ view settings """
 VIEW_SET = SettingSet('view', _('View settings'), _("Set up how certain parts of the site are displayed."), 20)
 
+SUMMARY_LENGTH = Setting('SUMMARY_LENGTH', 300, VIEW_SET, dict(
+label = _("Summary Length"),
+help_text = _("The number of characters that are going to be displayed in order to get the content summary.")))
+
 RECENT_TAGS_SIZE = Setting('RECENT_TAGS_SIZE', 25, VIEW_SET, dict(
 label = _("Recent tags block size"),
 help_text = _("The number of tags to display in the recent tags block in the front page.")))