Merge lp:~jtv/maas/revert-bug-1311433 into lp:~maas-committers/maas/trunk

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Jeroen T. Vermeulen
Approved revision: no longer in the source branch.
Merged at revision: 2310
Proposed branch: lp:~jtv/maas/revert-bug-1311433
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 35 lines (+3/-10)
1 file modified
src/maasserver/views/combo.py (+3/-10)
To merge this branch: bzr merge lp:~jtv/maas/revert-bug-1311433
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve
Review via email: mp+219067@code.launchpad.net

Commit message

Revert trunk r2277: workaround for bug 1311433 (now properly fixed in Django).

Description of the change

Reverting this code change will save the distro people an unnecessary SRU.

Jeroen

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/views/combo.py'
2--- src/maasserver/views/combo.py 2014-04-25 18:03:38 +0000
3+++ src/maasserver/views/combo.py 2014-05-09 20:28:59 +0000
4@@ -1,4 +1,4 @@
5-# Copyright 2012-2014 Canonical Ltd. This software is licensed under the
6+# Copyright 2012 Canonical Ltd. This software is licensed under the
7 # GNU Affero General Public License version 3 (see the file LICENSE).
8
9 """Combo view."""
10@@ -16,10 +16,7 @@
11 'get_combo_view',
12 ]
13
14-from functools import (
15- partial,
16- update_wrapper,
17- )
18+from functools import partial
19 import os
20
21 from convoy.combo import (
22@@ -79,12 +76,8 @@
23 :rtype: callable
24 """
25 location = get_absolute_location(location)
26- # Work around bug 1311433: returning a "partial" as a view causes an
27- # AttributeError about a missing __module__ attribute. The update_wrapper
28- # solves this.
29- partial_view = partial(
30+ return partial(
31 combo_view, location=location, default_redirect=default_redirect)
32- return update_wrapper(partial_view, combo_view)
33
34
35 def combo_view(request, location, default_redirect=None, encoding='utf8'):