mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Team organization field made non-null
This commit is contained in:
parent
994a72967d
commit
68d5a702af
@ -15,6 +15,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name='team',
|
||||
name='organization',
|
||||
field=models.ForeignKey(related_name='teams', to='main.Organization', null=True),
|
||||
field=models.ForeignKey(related_name='teams', to='main.Organization'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
|
||||
@ -92,7 +92,7 @@ class Team(CommonModelNameNotUnique, ResourceMixin):
|
||||
organization = models.ForeignKey(
|
||||
'Organization',
|
||||
blank=False,
|
||||
null=True,
|
||||
null=False,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='teams',
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user