Fixed long/int issue for Python 3.
This closes #126 with a fix that won't degrate Python 2 code.fix_request_path_info
parent
9efc5cfcb2
commit
9ef7ccb65e
|
|
@ -27,6 +27,9 @@ except ImportError:
|
||||||
def add_preserved_filters(context, form_url):
|
def add_preserved_filters(context, form_url):
|
||||||
return form_url
|
return form_url
|
||||||
|
|
||||||
|
if sys.version_info[0] >= 3:
|
||||||
|
long = int
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'PolymorphicModelChoiceForm', 'PolymorphicParentModelAdmin',
|
'PolymorphicModelChoiceForm', 'PolymorphicParentModelAdmin',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue