-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model): add group field to TransitAgency
this allows us to link a user in the admin interface to a TransitAgency
- Loading branch information
1 parent
a6536cd
commit e00240c
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 5.0.7 on 2024-08-16 16:08 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("auth", "0012_alter_user_first_name_max_length"), | ||
("core", "0021_rename_eligibilityverifier_enrollmentflow"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="transitagency", | ||
name="group", | ||
field=models.OneToOneField( | ||
blank=True, | ||
default=None, | ||
help_text="The group of users who can access this TransitAgency.", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
to="auth.group", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters