mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
add organization to app model
This commit is contained in:
@@ -31,7 +31,13 @@ class OAuth2Application(AbstractApplication):
|
||||
editable=False,
|
||||
validators=[RegexValidator(DATA_URI_RE)],
|
||||
)
|
||||
|
||||
organization = models.ForeignKey(
|
||||
'Organization',
|
||||
related_name='applications',
|
||||
help_text=_('Organization containing this application.'),
|
||||
on_delete=models.CASCADE,
|
||||
null=True,
|
||||
)
|
||||
|
||||
class OAuth2AccessToken(AbstractAccessToken):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user