We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c53660 + fc7b99a commit 324cd9cCopy full SHA for 324cd9c
oauth2_provider/models.py
@@ -60,7 +60,7 @@ class AbstractApplication(models.Model):
60
61
client_id = models.CharField(max_length=100, unique=True,
62
default=generate_client_id, db_index=True)
63
- user = models.ForeignKey(AUTH_USER_MODEL)
+ user = models.ForeignKey(AUTH_USER_MODEL, related_name="%(app_label)s_%(class)s")
64
help_text = _("Allowed URIs list, space separated")
65
redirect_uris = models.TextField(help_text=help_text,
66
validators=[validate_uris], blank=True)
0 commit comments