correct models. Add blank to generated fields
authorymh <ymh.work@gmail.com>
Mon, 06 Aug 2012 00:30:24 +0200
changeset 733 43c9571752f6
parent 732 fa3f1f436ecd
child 734 93af6b5ad5ac
child 736 7917cd78d1f4
correct models. Add blank to generated fields
src/ldt/ldt/ldt_utils/models.py
--- a/src/ldt/ldt/ldt_utils/models.py	Sun Aug 05 15:20:29 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/models.py	Mon Aug 06 00:30:24 2012 +0200
@@ -53,7 +53,7 @@
     title = models.CharField(max_length=1024, null=True, blank=True, verbose_name=_('title'))
     src = models.CharField(max_length=1024, verbose_name=_('media.src'))
     #TODO: use a fixed length char field
-    src_hash = models.CharField(max_length=128, unique=True, verbose_name=_('media.src_hash'))
+    src_hash = models.CharField(max_length=128, unique=True, verbose_name=_('media.src_hash'), blank=True)
     mimetype_field = models.CharField(max_length=512, null=True, blank=True, verbose_name=_('media.mimetype'))
     
     class Meta:
@@ -665,7 +665,7 @@
     date = models.CharField(max_length=128, unique=False, null=True, blank=True)
     abstract = models.TextField(null=True, blank=True)
     polemics = models.IntegerField(null=True, blank=True, default=0)
-    id_hash = models.CharField(max_length=128, unique=True)
+    id_hash = models.CharField(max_length=128, unique=True, blank=True)
     
     
     # All combinations of polemic hashtags can be represented by a combination of