from django.utils.version import get_version as django_get_version


VERSION = (0, 9, 0, 'beta', 1)


def get_version():
    return django_get_version(VERSION) # pragma: no cover

VERSION = (0, 9, 0, 'beta', 1)


def get_version():
    from django.utils.version import get_version as django_get_version
    return django_get_version(VERSION) # pragma: no cover

Move import of Django's get_version into django-registration's get_version, to avoid dependency-order problems.
Move import of Django's get_version into django-registration's get_version, to avoid dependency-order problems.

- from django.utils.version import get_version as django_get_version
- 
- 
  VERSION = (0, 9, 0, 'beta', 1)
  
  
  def get_version():
+     from django.utils.version import get_version as django_get_version
      return django_get_version(VERSION) # pragma: no cover
  
Move import of Django's get_version into django-registration's get_version, to avoid dependency-order problems.
## Code Before:
from django.utils.version import get_version as django_get_version


VERSION = (0, 9, 0, 'beta', 1)


def get_version():
    return django_get_version(VERSION) # pragma: no cover

## Instruction:
Move import of Django's get_version into django-registration's get_version, to avoid dependency-order problems.
## Code After:
VERSION = (0, 9, 0, 'beta', 1)


def get_version():
    from django.utils.version import get_version as django_get_version
    return django_get_version(VERSION) # pragma: no cover
