allow longer version strings

This commit is contained in:
Frédéric Péters 2020-12-16 15:35:56 +01:00
parent 2ce912f3cb
commit dd0567b653
2 changed files with 26 additions and 1 deletions

View File

@ -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),
),
]

View File

@ -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)