Mercurial > public > sg101
comparison donations/models.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | e14f54f16dbc |
children |
comparison
equal
deleted
inserted
replaced
1205:510ef3cbf3e6 | 1206:02181fa5ac9d |
---|---|
93 | 93 |
94 | 94 |
95 class Donation(models.Model): | 95 class Donation(models.Model): |
96 """Model to represent a donation to the website.""" | 96 """Model to represent a donation to the website.""" |
97 | 97 |
98 user = models.ForeignKey(User, null=True, blank=True) | 98 user = models.ForeignKey(User, null=True, blank=True, |
99 on_delete=models.CASCADE) | |
99 is_anonymous = models.BooleanField(default=False) | 100 is_anonymous = models.BooleanField(default=False) |
100 test_ipn = models.BooleanField(default=False, verbose_name="Test IPN") | 101 test_ipn = models.BooleanField(default=False, verbose_name="Test IPN") |
101 txn_id = models.CharField(max_length=20, verbose_name="Txn ID") | 102 txn_id = models.CharField(max_length=20, verbose_name="Txn ID") |
102 txn_type = models.CharField(max_length=64) | 103 txn_type = models.CharField(max_length=64) |
103 first_name = models.CharField(max_length=64, blank=True) | 104 first_name = models.CharField(max_length=64, blank=True) |