Merge pull request #2555 from AlanCoding/app_name_unique

Make applications org-name-unique
This commit is contained in:
Alan Rominger
2018-07-17 16:49:57 -04:00
committed by GitHub
3 changed files with 7 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ class OAuth2Application(AbstractApplication):
class Meta:
app_label = 'main'
verbose_name = _('application')
unique_together = (("name", "organization"),)
CLIENT_CONFIDENTIAL = "confidential"
CLIENT_PUBLIC = "public"