2015-01-03 14:36:22 +00:00
|
|
|
from django.db import models
|
|
|
|
|
2023-10-19 22:52:39 +00:00
|
|
|
|
2015-01-03 14:36:22 +00:00
|
|
|
class Supporter(models.Model):
|
|
|
|
"""Conservancy Supporter listing"""
|
|
|
|
|
|
|
|
display_name = models.CharField(max_length=200, blank=False)
|
|
|
|
display_until_date = models.DateTimeField("date until which this supporter name is displayed")
|
|
|
|
ledger_entity_id = models.CharField(max_length=200, blank=False)
|
|
|
|
|
|
|
|
def test(self):
|
|
|
|
return "TESTING"
|
2022-01-10 22:13:46 +00:00
|
|
|
def __str__(self):
|
2015-01-03 14:36:22 +00:00
|
|
|
return self.display_name
|
|
|
|
|
2023-09-07 13:15:48 +00:00
|
|
|
class Meta:
|
2015-01-04 17:10:09 +00:00
|
|
|
ordering = ('ledger_entity_id',)
|