Skip to content

Commit

Permalink
Fixed long/int issue for Python 3.
Browse files Browse the repository at this point in the history
This closes #126 with a fix that won't degrate Python 2 code.
  • Loading branch information
vdboor committed Apr 8, 2015
1 parent 9efc5cf commit 9ef7ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polymorphic/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
def add_preserved_filters(context, form_url):
return form_url

if sys.version_info[0] >= 3:
long = int


__all__ = (
'PolymorphicModelChoiceForm', 'PolymorphicParentModelAdmin',
Expand Down

0 comments on commit 9ef7ccb

Please sign in to comment.