# flake8: noqa
from __future__ import absolute_import
from .filterset import FilterSet
from .filters import *

__version__ = '0.9.0'


def get_version(version):
    '''
    '0.1.2-dev' -> (0, 1, 2, 'dev')
    '0.1.2' -> (0, 1, 2)
    '''
    v = version.split('.')
    v = v[:-1] + v[-1].split('-')
    ret = []
    for p in v:
        if p.isdigit():
            ret.append(int(p))
        else:
            ret.append(p)
    return tuple(ret)

VERSION = get_version(__version__)

django_filters/__init__.py
# flake8: noqa
from __future__ import absolute_import
from .filterset import FilterSet
from .filters import *

__version__ = '0.9.0'


def parse_version(version):
    '''
    '0.1.2-dev' -> (0, 1, 2, 'dev')
    '0.1.2' -> (0, 1, 2)
    '''
    v = version.split('.')
    v = v[:-1] + v[-1].split('-')
    ret = []
    for p in v:
        if p.isdigit():
            ret.append(int(p))
        else:
            ret.append(p)
    return tuple(ret)

VERSION = parse_version(__version__)

django_filters/__init__.py
diff --git a/django_filters/__init__.py b/django_filters/__init__.py
index a44698b1e..596e8844c 100644
--- a/django_filters/__init__.py
+++ b/django_filters/__init__.py
@@ -6,7 +6,7 @@
 __version__ = '0.9.0'
 
 
-def get_version(version):
+def parse_version(version):
     '''
     '0.1.2-dev' -> (0, 1, 2, 'dev')
     '0.1.2' -> (0, 1, 2)
@@ -21,4 +21,4 @@ def get_version(version):
             ret.append(p)
     return tuple(ret)
 
-VERSION = get_version(__version__)
+VERSION = parse_version(__version__)

Incompatible with django-debug-toolbar versions panel
django-debug-toolbar versions panel expects a parameterless get_version() method.

https://github.com/django-debug-toolbar/django-debug-toolbar/blob/master/debug_toolbar/panels/versions.py#L67

Your get_version method requires a parameter (version)

https://github.com/alex/django-filter/blob/develop/django_filters/__init__.py#L9

Is there a way you could change your get_version method signature to be compatible?  Been running django-debug-toolbar for a long time and I have never run into this with any other 3rd party apps.

