# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.functional import allow_lazy


if django.VERSION >= (1, 5):
    from django.contrib.auth import get_user_model
    AUTH_USER_MODEL = settings.AUTH_USER_MODEL
    get_user_model = allow_lazy(get_user_model, AUTH_USER_MODEL)
    get_username_field = allow_lazy(lambda: get_user_model().USERNAME_FIELD, str)
else:
    from django.contrib.auth.models import User
    AUTH_USER_MODEL = 'auth.User'

    def get_user_model():
        return User

    def get_username_field():
        return 'username'

@@ -309,90 +309,8 @@
 EL)%0A
-    get_username_field = allow_lazy(lambda: get_user_model().USERNAME_FIELD, str)%0A
 else
@@ -444,61 +444,4 @@
 ser%0A
-%0A    def get_username_field():%0A        return 'username'%0A

remove unused function or something