Code

Ticket #7663: flatpages.diff

File flatpages.diff, 651 bytes (added by Carl Karsten <carl@…>, 6 years ago)
Line 
1Index: contrib/flatpages/models.py
2===================================================================
3--- contrib/flatpages/models.py (revision 7857)
4+++ contrib/flatpages/models.py (working copy)
5@@ -5,7 +5,7 @@
6 
7 
8 class FlatPage(models.Model):
9-    url = models.CharField(_('URL'), max_length=100, validator_list=[validators.isAlphaNumericURL], db_index=True,
10+    url = models.CharField(_('URL'), max_length=100, db_index=True,
11         help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes."))
12     title = models.CharField(_('title'), max_length=200)
13     content = models.TextField(_('content'), blank=True)