Merge branch 'master' of git.incorporeal.org:dr.botzo
This commit is contained in:
commit
efc2b2675f
|
@ -115,11 +115,11 @@ class LazyAbsoluteUrl(object):
|
||||||
"""Use (abuse?) duck typing to wrap reverse_lazy in a manner that lets us
|
"""Use (abuse?) duck typing to wrap reverse_lazy in a manner that lets us
|
||||||
append domain stuff but still be lazy, and appear as a string.
|
append domain stuff but still be lazy, and appear as a string.
|
||||||
|
|
||||||
We need to do this lazily because SoapRequest objects are probably created at the module
|
We need to do this lazily because SoapDispatch objects are probably created at the module
|
||||||
level, which means they'll probably first get hit during urls.py scanning, and we can't
|
level, which means they'll probably first get hit during urls.py scanning, and we can't
|
||||||
reference reverse() then (as urls haven't finished importing). Since we need a domain and
|
reference reverse() then (as urls haven't finished importing). Since we need a domain and
|
||||||
stuff, we need to do that lazily too, and can't simply use reverse_lazy(). Hence this
|
stuff, we need to do that lazily too, and can't simply use reverse_lazy(). Hence this
|
||||||
class that tries to look like a string
|
class that tries to look like a string.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, url_name):
|
def __init__(self, url_name):
|
||||||
|
|
Loading…
Reference in New Issue