Skip to content

Commit

Permalink
improve admin for referrals
Browse files Browse the repository at this point in the history
  • Loading branch information
asennoussi committed Aug 25, 2023
1 parent e5282d4 commit c23b613
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions referral/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ class Referral(models.Model):

class Meta:
unique_together = ('inviter', 'referred_user')

def __str__(self):
return self.referred_user.email + " From "+self.inviter.email + " " + self.successful

0 comments on commit c23b613

Please sign in to comment.