diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py
index 85873ac..8d8a9d4 100644
a
|
b
|
|
1 | 1 | from django.db import models |
2 | 2 | from django.contrib.sites.models import Site |
3 | 3 | from django.utils.translation import ugettext_lazy as _ |
4 | | |
| 4 | import os |
5 | 5 | |
6 | 6 | class FlatPage(models.Model): |
7 | 7 | url = models.CharField(_('URL'), max_length=100, db_index=True) |
8 | 8 | title = models.CharField(_('title'), max_length=200) |
9 | 9 | content = models.TextField(_('content'), blank=True) |
10 | 10 | enable_comments = models.BooleanField(_('enable comments')) |
11 | | template_name = models.CharField(_('template name'), max_length=70, blank=True, |
| 11 | template_name = models.CharField(_('template name'), max_length=os.pathconf('/', 'PC_PATH_MAX'), blank=True, |
12 | 12 | help_text=_("Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.")) |
13 | 13 | registration_required = models.BooleanField(_('registration required'), help_text=_("If this is checked, only logged-in users will be able to view the page.")) |
14 | 14 | sites = models.ManyToManyField(Site) |