Skip to content

Commit

Permalink
add migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Sep 13, 2024
1 parent a79ca50 commit efd40c3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 5.1.1 on 2024-09-13 20:26

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("authenticate", "0055_alter_profile_github_username_and_more"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.AddField(
model_name="academyauthsettings",
name="google_cloud_owner",
field=models.ForeignKey(
blank=True,
default=None,
help_text="Google auth token for this user will be used for any admin call to the google cloud api, for example: creating classroom video calls",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="google_cloud_academy_auth_settings",
to=settings.AUTH_USER_MODEL,
),
),
migrations.AlterField(
model_name="academyauthsettings",
name="github_owner",
field=models.ForeignKey(
blank=True,
default=None,
help_text="Github auth token for this user will be used for any admin call to the google cloud api, for example: inviting users to the academy",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to=settings.AUTH_USER_MODEL,
),
),
]
1 change: 1 addition & 0 deletions breathecode/authenticate/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ class AcademyAuthSettings(models.Model):
null=True,
help_text="Google auth token for this user will be used for any admin call to the google cloud api, "
"for example: creating classroom video calls",
related_name="google_cloud_academy_auth_settings",
)
github_default_team_ids = models.CharField(
max_length=40,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ def generate_mentorship_models(
if "mentorship_service" in models:
kargs["service"] = just_one(models["mentorship_service"])

if "academy" in models:
kargs["academy"] = just_one(models["academy"])

models["mentorship_session"] = create_models(mentorship_session, "mentorship.MentorshipSession", **kargs)

return models

0 comments on commit efd40c3

Please sign in to comment.