from django.db import models
from django.contrib.auth.models import User
from encryption import EncryptedCharField

VIEW_TYPE_CHOICES = (
    ('GIT', 'GitHub'),
    ('ZEN', 'Zendesk')
)

class GZUserProfile(models.Model):
    user = models.ForeignKey(User, unique=True)
    git_token = EncryptedCharField(max_length=75)
    git_org = models.CharField(max_length=75, 
                               verbose_name='GitHub Organization')
    git_repo = models.CharField(max_length=75,
                                verbose_name='GitHub Repository')
    zen_name = models.CharField(max_length=75,
                                verbose_name='Zendesk User Email')
    zen_token = EncryptedCharField(max_length=75,
                                   verbose_name='Zendesk API Token')
    zen_url = models.CharField(max_length=100,
                               verbose_name='Zendesk URL Subdomain')
    zen_fieldid = models.IntegerField(null=True,
                                      verbose_name='Zendesk Ticket \
                                      Association Field ID')
    utc_offset = models.IntegerField(null=True, 
                                     verbose_name='Time Zone (UTC Offset)')
    view_type = models.CharField(max_length=3, choices=VIEW_TYPE_CHOICES,
                                 default='ZEN', verbose_name='View Type')

    def __str__(self):
        return "%s's profile" % self.user

@@ -113,79 +113,8 @@
 ld%0A%0A
-VIEW_TYPE_CHOICES = (%0A    ('GIT', 'GitHub'),%0A    ('ZEN', 'Zendesk')%0A)%0A%0A
 clas
@@ -1130,152 +1130,8 @@
     
-view_type = models.CharField(max_length=3, choices=VIEW_TYPE_CHOICES,%0A                                 default='ZEN', verbose_name='View Type')%0A
 %0A   

reset model to set up South on heroku.