Skip to content

Commit

Permalink
run black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
diogosilva30 committed Oct 19, 2022
1 parent 4cb0f61 commit 8968718
Showing 1 changed file with 129 additions and 37 deletions.
166 changes: 129 additions & 37 deletions django_keycloak/migrations/0001_redo_migrations_0001to0005.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,156 @@

class Migration(migrations.Migration):

replaces = [('django_keycloak', '0001_initial'), ('django_keycloak', '0002_auto_20210209_1503'), ('django_keycloak', '0003_auto_20210406_1426'), ('django_keycloak', '0004_keycloakuserautoid'), ('django_keycloak', '0005_auto_20211231_1702')]
replaces = [
("django_keycloak", "0001_initial"),
("django_keycloak", "0002_auto_20210209_1503"),
("django_keycloak", "0003_auto_20210406_1426"),
("django_keycloak", "0004_keycloakuserautoid"),
("django_keycloak", "0005_auto_20211231_1702"),
]

initial = True

dependencies = [
('auth', '0011_update_proxy_permissions'),
("auth", "0011_update_proxy_permissions"),
]

operations = [
migrations.CreateModel(
name='KeycloakUser',
name="KeycloakUser",
fields=[
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('username', models.CharField(max_length=20, unique=True, verbose_name='username')),
('id', models.UUIDField(primary_key=True, serialize=False, unique=True, verbose_name='keycloak_id')),
('is_staff', models.BooleanField(default=False)),
('is_superuser', models.BooleanField(default=False)),
('is_active', models.BooleanField(default=True)),
('date_joined', models.DateTimeField(auto_now_add=True)),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
("password", models.CharField(max_length=128, verbose_name="password")),
(
"last_login",
models.DateTimeField(
blank=True, null=True, verbose_name="last login"
),
),
(
"username",
models.CharField(
max_length=20, unique=True, verbose_name="username"
),
),
(
"id",
models.UUIDField(
primary_key=True,
serialize=False,
unique=True,
verbose_name="keycloak_id",
),
),
("is_staff", models.BooleanField(default=False)),
("is_superuser", models.BooleanField(default=False)),
("is_active", models.BooleanField(default=True)),
("date_joined", models.DateTimeField(auto_now_add=True)),
(
"groups",
models.ManyToManyField(
blank=True,
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
related_name="user_set",
related_query_name="user",
to="auth.Group",
verbose_name="groups",
),
),
(
"user_permissions",
models.ManyToManyField(
blank=True,
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
to="auth.Permission",
verbose_name="user permissions",
),
),
],
options={
'abstract': False,
'swappable': 'AUTH_USER_MODEL',
'verbose_name': 'User',
'verbose_name_plural': 'Users',
"abstract": False,
"swappable": "AUTH_USER_MODEL",
"verbose_name": "User",
"verbose_name_plural": "Users",
},
managers=[
('objects', django_keycloak.managers.KeycloakUserManager()),
("objects", django_keycloak.managers.KeycloakUserManager()),
],
),
migrations.CreateModel(
name='KeycloakUserAutoId',
name="KeycloakUserAutoId",
fields=[
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('username', models.CharField(max_length=20, unique=True, verbose_name='username')),
('is_staff', models.BooleanField(default=False)),
('is_superuser', models.BooleanField(default=False)),
('is_active', models.BooleanField(default=True)),
('date_joined', models.DateTimeField(auto_now_add=True)),
('id', models.AutoField(primary_key=True, serialize=False)),
('keycloak_id', models.UUIDField(unique=True, verbose_name='keycloak_id')),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
("password", models.CharField(max_length=128, verbose_name="password")),
(
"last_login",
models.DateTimeField(
blank=True, null=True, verbose_name="last login"
),
),
(
"username",
models.CharField(
max_length=20, unique=True, verbose_name="username"
),
),
("is_staff", models.BooleanField(default=False)),
("is_superuser", models.BooleanField(default=False)),
("is_active", models.BooleanField(default=True)),
("date_joined", models.DateTimeField(auto_now_add=True)),
("id", models.AutoField(primary_key=True, serialize=False)),
(
"keycloak_id",
models.UUIDField(unique=True, verbose_name="keycloak_id"),
),
(
"groups",
models.ManyToManyField(
blank=True,
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
related_name="user_set",
related_query_name="user",
to="auth.Group",
verbose_name="groups",
),
),
(
"user_permissions",
models.ManyToManyField(
blank=True,
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
to="auth.Permission",
verbose_name="user permissions",
),
),
(
"email",
models.EmailField(
blank=True, max_length=254, verbose_name="email address"
),
),
(
"first_name",
models.CharField(
blank=True, max_length=150, verbose_name="first name"
),
),
(
"last_name",
models.CharField(
blank=True, max_length=150, verbose_name="last name"
),
),
],
options={
'verbose_name': 'User',
'verbose_name_plural': 'Users',
'swappable': 'AUTH_USER_MODEL',
"verbose_name": "User",
"verbose_name_plural": "Users",
"swappable": "AUTH_USER_MODEL",
},
managers=[
('objects', django_keycloak.managers.KeycloakUserManagerAutoId()),
("objects", django_keycloak.managers.KeycloakUserManagerAutoId()),
],
),
]

0 comments on commit 8968718

Please sign in to comment.