From c23b613578edf7323c658a28ed68aeff9ffc7cbc Mon Sep 17 00:00:00 2001 From: Aymane Date: Fri, 25 Aug 2023 18:14:35 +0100 Subject: [PATCH] improve admin for referrals --- referral/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/referral/models.py b/referral/models.py index 5d74d9d..9d100d1 100644 --- a/referral/models.py +++ b/referral/models.py @@ -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