Files @ 8cb1f3f685eb
Branch filter:

Location: website/www/conservancy/apps/supporters/models.py

brett
js: Use three-part progressbar when no middle goal defined.

Since our current fundraiser doesn't have a "middle goal," this makes
it a little easier to maintain the template and do the math.
from django.db import models

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"
    def __unicode__(self):
        return self.display_name

    class Meta:
        ordering = ('ledger_entity_id',)