From 9510383606be8a7e5f239b7b7a4d094678a98770 Mon Sep 17 00:00:00 2001
From: Christos Trochalakis <yatiohi@ideopolis.gr>
Date: Mon, 10 Aug 2009 15:53:52 +0300
Subject: [PATCH] add support for dots and tildes in flatpages
---
django/contrib/flatpages/admin.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/django/contrib/flatpages/admin.py b/django/contrib/flatpages/admin.py
index b6fdba3..1b377e9 100644
a
|
b
|
from django.utils.translation import ugettext_lazy as _
|
5 | 5 | |
6 | 6 | |
7 | 7 | class FlatpageForm(forms.ModelForm): |
8 | | url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^[-\w/]+$', |
| 8 | url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^[-\w/\.~]+$', |
9 | 9 | help_text = _("Example: '/about/contact/'. Make sure to have leading" |
10 | 10 | " and trailing slashes."), |
11 | 11 | error_message = _("This value must contain only letters, numbers," |
12 | | " underscores, dashes or slashes.")) |
| 12 | " dots, underscores, dashes, slashes or tildes.")) |
13 | 13 | |
14 | 14 | class Meta: |
15 | 15 | model = FlatPage |