Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/m/a/making_software-HEAD/making_software_perl/default_apps/allauth/utils.py   making_software(Download)
def generate_unique_username(txts):
    from .account.app_settings import USER_MODEL_USERNAME_FIELD
    username = _generate_unique_username_base(txts)
    User = get_user_model()
    try:
                pfx = ''
            ret = username[0:max_length - len(pfx)] + pfx
            query = {USER_MODEL_USERNAME_FIELD + '__iexact': ret}
            User.objects.get(**query)
            i += 1

src/d/j/django-allauth-0.16.1/allauth/utils.py   django-allauth(Download)
def generate_unique_username(txts):
    from .account.app_settings import USER_MODEL_USERNAME_FIELD
    username = _generate_unique_username_base(txts)
    User = get_user_model()
    try:
                pfx = ''
            ret = username[0:max_length - len(pfx)] + pfx
            query = {USER_MODEL_USERNAME_FIELD + '__iexact': ret}
            User.objects.get(**query)
            i += 1

src/d/j/django-allauth-HEAD/allauth/utils.py   django-allauth(Download)
def generate_unique_username(txts):
    from .account.app_settings import USER_MODEL_USERNAME_FIELD
    username = _generate_unique_username_base(txts)
    User = get_user_model()
    try:
                pfx = ''
            ret = username[0:max_length - len(pfx)] + pfx
            query = {USER_MODEL_USERNAME_FIELD + '__iexact': ret}
            User.objects.get(**query)
            i += 1

src/m/a/making_software-HEAD/loopware/allauth/utils.py   making_software(Download)
def generate_unique_username(txts):
    from .account.app_settings import USER_MODEL_USERNAME_FIELD
    username = _generate_unique_username_base(txts)
    User = get_user_model()
    try:
                pfx = ''
            ret = username[0:max_length - len(pfx)] + pfx
            query = {USER_MODEL_USERNAME_FIELD + '__iexact': ret}
            User.objects.get(**query)
            i += 1

src/d/j/django-allauth-0.16.1/allauth/socialaccount/admin.py   django-allauth(Download)
class SocialAccountAdmin(admin.ModelAdmin):
    search_fields = ['user__emailaddress__email'] + \
        list(map(lambda a: 'user__' + a,
             filter(lambda a: a and hasattr(User(), a),
                    [app_settings.USER_MODEL_USERNAME_FIELD,

src/d/j/django-allauth-HEAD/allauth/socialaccount/admin.py   django-allauth(Download)
class SocialAccountAdmin(admin.ModelAdmin):
    search_fields = ['user__emailaddress__email'] + \
        list(map(lambda a: 'user__' + a,
             filter(lambda a: a and hasattr(User(), a),
                    [app_settings.USER_MODEL_USERNAME_FIELD,

src/m/a/making_software-HEAD/making_software_perl/default_apps/allauth/socialaccount/tests.py   making_software(Download)
        User = get_user_model()
        user = User()
        setattr(user, account_settings.USER_MODEL_USERNAME_FIELD, 'test')
        setattr(user, account_settings.USER_MODEL_EMAIL_FIELD, 'test@test.com')
 

src/m/a/making_software-HEAD/loopware/allauth/socialaccount/tests.py   making_software(Download)
        User = get_user_model()
        user = User()
        setattr(user, account_settings.USER_MODEL_USERNAME_FIELD, 'test')
        setattr(user, account_settings.USER_MODEL_EMAIL_FIELD, 'test@test.com')
 

src/d/j/django-allauth-HEAD/allauth/socialaccount/tests.py   django-allauth(Download)
        User = get_user_model()
        user = User()
        setattr(user, account_settings.USER_MODEL_USERNAME_FIELD, 'test')
        setattr(user, account_settings.USER_MODEL_EMAIL_FIELD, 'test@test.com')
 

src/d/j/django-allauth-0.16.1/allauth/socialaccount/tests.py   django-allauth(Download)
        User = get_user_model()
        user = User()
        setattr(user, account_settings.USER_MODEL_USERNAME_FIELD, 'test')
        setattr(user, account_settings.USER_MODEL_EMAIL_FIELD, 'test@test.com')