Allowing dots in wiki namespaces.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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')'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user