summaryrefslogtreecommitdiff
path: root/coip/apps/consumer/models.py
diff options
context:
space:
mode:
authorJohan Berggren <jbn@nordu.net>2012-05-14 15:56:57 +0200
committerJohan Berggren <jbn@nordu.net>2012-05-14 15:56:57 +0200
commit59b22883948f01152da795bf802aa0d60ec9a12e (patch)
tree582ca2418f28ed03b2f6f6ae092812d64658d702 /coip/apps/consumer/models.py
parent080b0e4e0b8efb77da251d40008002bad89713af (diff)
Fix in autodiscover for consumer app. Updated settings for Django 1.4.
Some small fixes in consumer.models
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)