diff options
author | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
commit | f89410559c20dd88d78ccd6b9d24e7941da9d5ff (patch) | |
tree | 3ad4fb64efc7523d1f3065e0dd03693871d6ce55 /project/kiwipycon/sponsor/models.py | |
parent | 75f0773685ef0724d8ccc1eb1aab16bba55cd7a7 (diff) | |
download | scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.gz scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.bz2 scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.zip |
Added all the files from kiwipycon and the changes made for SciPy.in.
Diffstat (limited to 'project/kiwipycon/sponsor/models.py')
-rw-r--r-- | project/kiwipycon/sponsor/models.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/project/kiwipycon/sponsor/models.py b/project/kiwipycon/sponsor/models.py new file mode 100644 index 0000000..68d8b5b --- /dev/null +++ b/project/kiwipycon/sponsor/models.py @@ -0,0 +1,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 + |