Ben Sturmfels
531a97a3c9
The directory nesting is unnecessary here and confusing to navigate. I've moved all apps to the project subdirectory, currently called "www", but soon to be renamed "conservancy". I've also moved manage.py to the top-level directory.
17 lines
496 B
Python
17 lines
496 B
Python
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 __str__(self):
|
|
return self.display_name
|
|
|
|
class Meta:
|
|
ordering = ('ledger_entity_id',)
|