Rename hints to paypal hints

This commit is contained in:
Tanner Collin 2021-11-28 05:33:56 +00:00
parent ef24a264a6
commit b4510831f6
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class Transaction(models.Model):
history = HistoricalRecords() history = HistoricalRecords()
class PayPalHint(models.Model): class PayPalHint(models.Model):
user = models.ForeignKey(User, related_name='hints', blank=True, null=True, on_delete=models.SET_NULL) user = models.ForeignKey(User, related_name='paypal_hints', blank=True, null=True, on_delete=models.SET_NULL)
account = models.CharField(unique=True, max_length=13) account = models.CharField(unique=True, max_length=13)
member_id = models.IntegerField() member_id = models.IntegerField()

View File

@ -73,7 +73,7 @@ for member in members:
x = models.PayPalHint.objects.filter(member_id=member.id) x = models.PayPalHint.objects.filter(member_id=member.id)
x.update(user=user) x.update(user=user)
print(' Linked', x.count(), 'hints') print(' Linked', x.count(), 'paypal hints')
count += 1 count += 1