Fixed deprecated import.

The deprecated import causes a warning and will be removed in the next stable version of Django (1.6).

See: https://docs.djangoproject.com/en/dev/internals/deprecation/#id3