Added lenght limit to description
This commit is contained in:
parent
db026e0501
commit
01cb0ed7da
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.5 on 2017-05-25 10:56
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roms', '0007_auto_20170524_2138'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='rom',
|
||||
name='description',
|
||||
field=models.TextField(max_length=1024, verbose_name='Beschreibung'),
|
||||
),
|
||||
]
|
|
@ -22,7 +22,7 @@ def upload_binary_to(instance, filename):
|
|||
|
||||
class Rom(models.Model):
|
||||
name = models.CharField("name", max_length = 128, unique=True)
|
||||
description = models.TextField("Beschreibung")
|
||||
description = models.TextField("Beschreibung", max_length=1024)
|
||||
cover = StdImageField("cover-Bild",
|
||||
upload_to = upload_cover_to,
|
||||
validators = [MinSizeValidator(300,300)],
|
||||
|
|
Loading…
Reference in New Issue