From a7323361ffa00286c33f1a86f59270e50e38085b Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 27 Mar 2013 09:34:56 +0000 Subject: [PATCH] Bump up some of the field lengths Avoid truncation for slightly longer fields (as happened with PN and SUMMARY when importing some existing layers). Signed-off-by: Paul Eggleton --- layerindex/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layerindex/models.py b/layerindex/models.py index 6358cbd..46b1762 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -41,11 +41,11 @@ class LayerItem(models.Model): layer_type = models.CharField(max_length=1, choices=LAYER_TYPE_CHOICES) summary = models.CharField(max_length=200, help_text='One-line description of the layer') description = models.TextField() - vcs_url = models.CharField('Repository URL', max_length=200, help_text='Fetch/clone URL of the repository') + vcs_url = models.CharField('Repository URL', max_length=255, help_text='Fetch/clone URL of the repository') vcs_web_url = models.URLField('Repository web interface URL', blank=True, help_text='URL of the web interface for browsing the repository, if any') - vcs_web_tree_base_url = models.CharField('Repository web interface tree base URL', max_length=200, blank=True, help_text='Base URL for the web interface for browsing directories within the repository, if any') - vcs_web_file_base_url = models.CharField('Repository web interface file base URL', max_length=200, blank=True, help_text='Base URL for the web interface for viewing files (blobs) within the repository, if any') - usage_url = models.CharField('Usage web page URL', max_length=200, blank=True, help_text='URL of a web page with more information about the layer and how to use it, if any (or path to file within repository)') + vcs_web_tree_base_url = models.CharField('Repository web interface tree base URL', max_length=255, blank=True, help_text='Base URL for the web interface for browsing directories within the repository, if any') + vcs_web_file_base_url = models.CharField('Repository web interface file base URL', max_length=255, blank=True, help_text='Base URL for the web interface for viewing files (blobs) within the repository, if any') + usage_url = models.CharField('Usage web page URL', max_length=255, blank=True, help_text='URL of a web page with more information about the layer and how to use it, if any (or path to file within repository)') mailing_list_url = models.URLField('Mailing list URL', blank=True, help_text='URL of the info page for a mailing list for discussing the layer, if any') class Meta: @@ -195,9 +195,9 @@ class Recipe(models.Model): layerbranch = models.ForeignKey(LayerBranch) filename = models.CharField(max_length=255) filepath = models.CharField(max_length=255, blank=True) - pn = models.CharField(max_length=40, blank=True) + pn = models.CharField(max_length=100, blank=True) pv = models.CharField(max_length=100, blank=True) - summary = models.CharField(max_length=100, blank=True) + summary = models.CharField(max_length=200, blank=True) description = models.TextField(blank=True) section = models.CharField(max_length=100, blank=True) license = models.CharField(max_length=100, blank=True)