Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request jazzband#119 from variable/related_name_fix
Browse files Browse the repository at this point in the history
more flexible for related name of user field in AbstractApplication model
  • Loading branch information
masci committed May 3, 2014
2 parents 0c53660 + fc7b99a commit 324cd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2_provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AbstractApplication(models.Model):

client_id = models.CharField(max_length=100, unique=True,
default=generate_client_id, db_index=True)
user = models.ForeignKey(AUTH_USER_MODEL)
user = models.ForeignKey(AUTH_USER_MODEL, related_name="%(app_label)s_%(class)s")
help_text = _("Allowed URIs list, space separated")
redirect_uris = models.TextField(help_text=help_text,
validators=[validate_uris], blank=True)
Expand Down

0 comments on commit 324cd9c

Please sign in to comment.