Fixed long/int issue for Python 3.

This closes #126 with a fix that won't degrate Python 2 code.
fix_request_path_info
Diederik van der Boor 2015-04-08 13:37:47 +02:00
parent 9efc5cfcb2
commit 9ef7ccb65e
1 changed files with 3 additions and 0 deletions

View File

@ -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',