﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18331	flatpages - models.py: template path is limited to 70 chars	yarula	nobody	"While creating new flatpage object user cannot choose a template which path length is more than 70 chars.

Further local patch helped me :

--- a/django/contrib/flatpages/models.py
+++ b/django/contrib/flatpages/models.py
@@ -1,14 +1,14 @@
 from django.db import models
 from django.contrib.sites.models import Site
 from django.utils.translation import ugettext_lazy as _
-
+import os
 
 class FlatPage(models.Model):
     url = models.CharField(_('URL'), max_length=100, db_index=True)
     title = models.CharField(_('title'), max_length=200)
     content = models.TextField(_('content'), blank=True)
     enable_comments = models.BooleanField(_('enable comments'))
-    template_name = models.CharField(_('template name'), max_length=70, blank=True,
+    template_name = models.CharField(_('template name'), max_length=os.pathconf('/', 'PC_PATH_MAX'), blank=True,
         help_text=_(""Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.""))
     registration_required = models.BooleanField(_('registration required'), help_text=_(""If this is checked, only logged-in users will be able to view the p
     sites = models.ManyToManyField(Site)
"	Bug	closed	contrib.flatpages	1.4	Normal	wontfix	flatpages		Unreviewed	1	0	0	0	0	0
