summaryrefslogtreecommitdiff
path: root/coip/apps/consumer/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'coip/apps/consumer/models.py')
-rw-r--r--coip/apps/consumer/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coip/apps/consumer/models.py b/coip/apps/consumer/models.py
index 3585776..7386638 100644
--- a/coip/apps/consumer/models.py
+++ b/coip/apps/consumer/models.py
@@ -11,9 +11,9 @@ class Consumer(models.Model):
name = ForeignKey(Name)
user = ForeignKey(User)
inherit = BooleanField(default=False)
- consumer_name = fields.CharField(choices=[c.name for c in consumer_providers()])
- lastupdated = DateTimeField(auto_now=True)
- timecreated = DateTimeField(auto_now_add=True)
+ consumer_name = fields.CharField(choices=[c.name for c in consumer_providers()], max_length=255)
+ lastupdated = models.DateTimeField(auto_now=True)
+ timecreated = models.DateTimeField(auto_now_add=True)
def __unicode_(self):
return "%s connected to %s" % (self.name,self.consumer_name)