Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Created August 1, 2012 20:25
Show Gist options
  • Save robrocker7/3230400 to your computer and use it in GitHub Desktop.
Save robrocker7/3230400 to your computer and use it in GitHub Desktop.
Affiliate
class Profile(models.Model):
PROFILE_STATUS = (
('DECLINED', 'Declined'),
('APPROVED', 'Approved'),
('PENDING', 'Pending')
)
name = models.CharField(max_length=128)
title = models.CharField(max_length=128, blank=True, null=True)
company_name = models.CharField(max_length=128)
taxid = models.CharField(max_length=12)
street_address = models.CharField(max_length=128)
city = models.CharField(max_length=128)
state = models.CharField(max_length=128, choices=STATE_CHOICES)
zipcode = models.CharField(max_length=128)
phone = models.CharField(max_length=128)
fax = models.CharField(max_length=128, blank=True, null=True)
email = models.EmailField()
website = models.CharField(max_length=128)
comments = models.TextField(help_text='Please include background information about your company and how you feel that we can work together to achieve mutual success through our affiliate program.')
status = models.CharField(max_length=10, choices=PROFILE_STATUS,
default="PENDING")
agreed_to_terms = models.BooleanField(default=False)
sign = models.CharField(max_length=200)
affiliate = models.ForeignKey(Affiliate, blank=True, null=True)
date_created = models.DateTimeField(auto_now_add=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment