[damned-lies] Add initial marker to grep url expressions for teams
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add initial marker to grep url expressions for teams
- Date: Mon, 8 Mar 2010 07:54:42 +0000 (UTC)
commit 7e31b060d7c7efe5dd9c8e432ce63418a147d818
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Mar 8 08:54:17 2010 +0100
Add initial marker to grep url expressions for teams
teams/urls.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/teams/urls.py b/teams/urls.py
index 3a03d4d..d0f02c6 100644
--- a/teams/urls.py
+++ b/teams/urls.py
@@ -16,15 +16,15 @@ urlpatterns = patterns('',
view = 'teams.views.teams',
name = 'teams'),
url(
- regex = r'(?P<team_slug>[\w\- ]+)$',
+ regex = r'^(?P<team_slug>[\w\- ]+)$',
view = 'teams.views.team',
name = 'team_slug'),
url(
- regex = r'(?P<team_slug>[\w\- ]+)/edit/',
+ regex = r'^(?P<team_slug>[\w\- ]+)/edit/',
view = 'teams.views.team_edit',
name = 'team_edit'),
url(
- regex = r'(?P<object_id>\d+)',
+ regex = r'^(?P<object_id>\d+)',
view = 'django.views.generic.list_detail.object_detail',
kwargs = dict(info_dict),
name = 'team')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]