Skip to content

Commit 4663a7e

Browse files
authored
Merge pull request #522 from cosmologist10/docs
Django version upgraded from 1.8 to 1.9
2 parents 74a23c3 + 5f34d02 commit 4663a7e

28 files changed

+155
-78
lines changed

junction/base/monkey.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def patch_urlresolvers():
3636

3737
old_reverse = urlresolvers.reverse
3838

39-
def new_reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current_app=None):
40-
path = old_reverse(viewname, urlconf=urlconf, args=args, kwargs=kwargs, prefix=prefix, current_app=current_app)
39+
def new_reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None):
40+
path = old_reverse(viewname, urlconf=urlconf, args=args, kwargs=kwargs,
41+
current_app=current_app)
4142
if is_absolute_url(path):
4243
return path
4344

junction/proposals/urls.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
from __future__ import absolute_import, unicode_literals
33

44
# Third Party Stuff
5-
from django.conf.urls import include, patterns, url
5+
from django.conf.urls import include, url
66

77
from . import comments_views, views, votes_views, dashboard
88

9-
comment_urls = patterns(
10-
'',
9+
comment_urls = [
10+
1111
url(r'^(?P<proposal_slug>[\w-]+)/create/$',
1212
comments_views.create_proposal_comment, name='proposal-comment-create'),
1313
url(r'^(?P<proposal_slug>[\w-]+)/comments/(?P<proposal_comment_id>\d+)/up-vote/$',
1414
votes_views.proposal_comment_up_vote, name='proposal-comment-up-vote'),
1515
url(r'^(?P<proposal_slug>[\w-]+)/comments/(?P<proposal_comment_id>\d+)/down-vote/$',
1616
votes_views.proposal_comment_down_vote, name='proposal-comment-down-vote'),
17-
)
17+
]
18+
19+
urlpatterns = [
1820

19-
urlpatterns = patterns(
20-
'',
2121
# proposal urls
2222
url(r'^$', views.list_proposals, name='proposals-list'),
2323
url(r'^create/$', views.create_proposal, name='proposal-create'),
@@ -40,4 +40,4 @@
4040
url(r'^(?P<proposal_slug>[\w-]+)/vote/$', votes_views.proposal_reviewer_vote, name='proposal-reviewer-vote'),
4141
url(r'^(?P<proposal_slug>[\w-]+)/second-vote/$', votes_views.proposal_reviewer_secondary_vote,
4242
name='proposal-reviewer-secondary-vote'),
43-
)
43+
]

junction/schedule/urls.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
from __future__ import absolute_import, unicode_literals
33

44
# Third Party Stuff
5-
from django.conf.urls import patterns, url
5+
from django.conf.urls import url
66

77
from . import views
88

9-
urlpatterns = patterns(
10-
'',
9+
urlpatterns = [
1110
# schedule urls
1211
url(r'^dummy_schedule/$', views.dummy_schedule, name='dummy_schedule'),
13-
)
12+
]

junction/templates/account/email.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "account/base.html" %}
22
{% load i18n %}
3-
{% load url from future %}
3+
44

55
{% load django_bootstrap_breadcrumbs %}
66

junction/templates/account/email_confirm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "account/base.html" %}
2-
{% load url from future %}
2+
33
{% load i18n %}
44
{% load account %}
55
{% load django_bootstrap_breadcrumbs %}

junction/templates/account/login.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{% load i18n %}
33
{% load account %}
44
{% load django_bootstrap_breadcrumbs %}
5-
{% load url from future %}
65

76
{% block head_title %}{% trans "Sign In" %} · {{ block.super }}{% endblock %}
87

junction/templates/account/logout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "account/base.html" %}
2-
{% load url from future %}
2+
33
{% load i18n %}
44

55
{% load django_bootstrap_breadcrumbs %}

junction/templates/account/password_change.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "account/base.html" %}
2-
{% load url from future %}
2+
33
{% load i18n %}
44
{% load django_bootstrap_breadcrumbs %}
55

junction/templates/account/password_reset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "account/base.html" %}
22
{% load i18n %}
33
{% load account %}
4-
{% load url from future %}
4+
55
{% load django_bootstrap_breadcrumbs %}
66

77
{% block head_title %}{% trans "Password Reset" %} · {{ block.super }}{% endblock %}

junction/templates/account/password_reset_from_key.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "account/base.html" %}
2-
{% load url from future %}
2+
33
{% load django_bootstrap_breadcrumbs %}
44
{% load i18n %}
55

0 commit comments

Comments
 (0)