From dd0567b6530a11c91360a55acc5abdd1aa6f6f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 16 Dec 2020 15:35:56 +0100 Subject: [PATCH] allow longer version strings --- .../migrations/0005_auto_20201216_1435.py | 25 +++++++++++++++++++ scrutiny/projects/models.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 scrutiny/projects/migrations/0005_auto_20201216_1435.py diff --git a/scrutiny/projects/migrations/0005_auto_20201216_1435.py b/scrutiny/projects/migrations/0005_auto_20201216_1435.py new file mode 100644 index 0000000..713fcdc --- /dev/null +++ b/scrutiny/projects/migrations/0005_auto_20201216_1435.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.29 on 2020-12-16 14:35 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('projects', '0004_auto_20150428_1348'), + ] + + operations = [ + migrations.AlterField( + model_name='module', + name='repository_url', + field=models.URLField(blank=True), + ), + migrations.AlterField( + model_name='version', + name='version', + field=models.CharField(blank=True, max_length=500), + ), + ] diff --git a/scrutiny/projects/models.py b/scrutiny/projects/models.py index 3e1c066..ba9cc64 100644 --- a/scrutiny/projects/models.py +++ b/scrutiny/projects/models.py @@ -171,7 +171,7 @@ class Module(models.Model): class Version(models.Model): module = models.ForeignKey('Module') - version = models.CharField(max_length=100, blank=True) + version = models.CharField(max_length=500, blank=True) def __str__(self): return '%s %s' % (self.module.name, self.version)