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

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

src/c/o/commcare-hq-HEAD/corehq/apps/accounting/management/commands/add_operations_user.py   commcare-hq(Download)
                user = User.objects.get(username=arg)
                user_role, is_new = UserRole.objects.get_or_create(
                    user=user,
                    role=ops_role,
                )