project/scipycon/sponsor/models.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 17:59:47 +0530
changeset 94 87e77aa18610
permissions -rw-r--r--
Moved the files to new Django app named scipycon and modified settings.

# -*- coding: utf-8 -*-
from __future__ import absolute_import

#django
from django.db import models
from django.conf import settings

TYPE_CHOICES = (
    ('gold', 'Gold'),
    ('silver', 'Silver'),
    ('schwag', 'Schwag'),
    )

class Sponsor(models.Model):
    """Defines sponsors for *PyCon"""
    slug = models.SlugField()
    title = models.CharField(max_length=255)
    type = models.CharField(max_length=10, choices=TYPE_CHOICES)
    contact_name = models.CharField(max_length=255)
    contact_email = models.CharField(max_length=255)
    contact_phone = models.CharField(max_length=255)
    url = models.URLField(blank=True, verify_exists=False)
    logo = models.CharField(max_length=64, blank=True)
    guests = models.IntegerField()

    def __unicode__(self):
        return self.title