Files @ d73018440a4d
Branch filter:

Location: website/www/conservancy/apps/contacts/models.py - annotation

bkuhn
Initial hack at a fundraising goal application.

This simple application will simply store the code name and the to goal
of each fundraiser. The so_far number will likely just be updated by
some external script, modifying the appropriate entry in the SQL
database.
from django.db import models

class ContactEntry(models.Model):
    """Conservancy contact system

    Hopefully this will be deprecated soon"""

    email = models.EmailField() # should make it unique, but we really cannot
    subscribe_conservancy = models.BooleanField()

    class Meta:
        ordering = ('email',)