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