Skip to content

Commit

Permalink
[jazzband#203] Add related_name to avoid conflicts when subclassing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrie authored Aug 11, 2023
1 parent e3f2474 commit 0700458
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invitations/base_invitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class AbstractBaseInvitation(models.Model):
null=True,
blank=True,
on_delete=models.CASCADE,
related_name="%(app_label)s_%(class)ss",
related_query_name="%(app_label)s_%(class)s",
)

objects = BaseInvitationManager()
Expand Down

0 comments on commit 0700458

Please sign in to comment.