Skip to content

Commit

Permalink
fix: related name for service accounts app fk
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Oct 24, 2024
1 parent e0b9802 commit 816670c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions backend/api/migrations/0087_alter_serviceaccount_apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.15 on 2024-10-24 12:31

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0086_remove_servicetoken_service_account_and_more'),
]

operations = [
migrations.AlterField(
model_name='serviceaccount',
name='apps',
field=models.ManyToManyField(related_name='service_accounts', to='api.app'),
),
]
2 changes: 1 addition & 1 deletion backend/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class ServiceAccount(models.Model):
null=True,
blank=True,
)
apps = models.ManyToManyField(App, related_name="apps")
apps = models.ManyToManyField(App, related_name="service_accounts")
identity_key = models.CharField(max_length=256, null=True, blank=True)
server_wrapped_keyring = models.TextField(null=True)
server_wrapped_recovery = models.TextField(null=True)
Expand Down

0 comments on commit 816670c

Please sign in to comment.