Merge lp:~phanatic/django-configglue/django-1.3.1-support into lp:django-configglue

Proposed by Szilveszter Farkas
Status: Merged
Approved by: Ricardo Kirkner
Approved revision: 66
Merged at revision: 66
Proposed branch: lp:~phanatic/django-configglue/django-1.3.1-support
Merge into: lp:django-configglue
Diff against target: 32 lines (+18/-0)
1 file modified
django_configglue/schema.py (+18/-0)
To merge this branch: bzr merge lp:~phanatic/django-configglue/django-1.3.1-support
Reviewer Review Type Date Requested Status
Ricardo Kirkner Approve
Review via email: mp+77827@code.launchpad.net

Commit message

The security release of Django 1.3.1 introduced a new setting, I added that to the schema.

Description of the change

The security release of Django 1.3.1 introduced a new setting, I added that to the schema.

To post a comment you must log in.
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

LGTM. Thanks for the help!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'django_configglue/schema.py'
2--- django_configglue/schema.py 2011-10-02 14:53:32 +0000
3+++ django_configglue/schema.py 2011-10-02 17:47:23 +0000
4@@ -1108,6 +1108,23 @@
5 "Examples: 'http://foo.com/media/', '/media/'")
6
7
8+class Django131Schema(Django13Schema):
9+ version = '1.3.1'
10+
11+ # sections
12+ class django(Django13Schema.django):
13+
14+ ################
15+ # CORE #
16+ ################
17+
18+ use_x_forwarded_host = BoolOption(default=False,
19+ help="A boolean that specifies whether to use the "
20+ "X-Forwarded-Host header in preference to the Host header. "
21+ "This should only be enabled if a proxy which sets this "
22+ "header is in use.")
23+
24+
25 class DjangoSchemaFactory(object):
26 def __init__(self):
27 self._schemas = {}
28@@ -1215,3 +1232,4 @@
29 schemas.register(Django112Schema, '1.1.4')
30 schemas.register(Django125Schema)
31 schemas.register(Django13Schema)
32+schemas.register(Django131Schema)

Subscribers

People subscribed via source and target branches