Now if an user after cancel his donation, he make it again, we reactivate his donator status. Fixed css on donations.html
This commit is contained in:
parent
bad053e4de
commit
ab5a7462ad
3 changed files with 18 additions and 4 deletions
|
|
@ -21,6 +21,10 @@ class DonatorStatus(models.Model):
|
|||
def create(cls, user):
|
||||
cls.objects.get_or_create(user=user)
|
||||
|
||||
def set_active(self):
|
||||
self.status = DonatorStatus.ACTIVE
|
||||
self.save()
|
||||
|
||||
|
||||
class Donation(models.Model):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue