Allowing dots in wiki namespaces.

This commit is contained in:
Bridger Maxwell
2012-07-06 17:49:26 -04:00
parent 4d349fbd9d
commit 291ec2cfc6
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
namespace6002x, created = orm.Namespace.objects.get_or_create(name="6002xS12")
namespace6002x, created = orm.Namespace.objects.get_or_create(name="6.002xS12")
if created:
namespace6002x.save()

View File

@@ -1,6 +1,6 @@
from django.conf.urls.defaults import patterns, url
namespace_regex = r"[a-zA-Z\d_-]+"
namespace_regex = r"[a-zA-Z\d._-]+"
article_slug = r'/(?P<article_path>' + namespace_regex + r'/[a-zA-Z\d_-]*)'
namespace = r'/(?P<namespace>' + namespace_regex + r')'