summaryrefslogtreecommitdiff
path: root/project/kiwipycon/sponsor/models.py
blob: 68d8b5bb04587a9e16ffa2d70b3aaa5049b55c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- 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