[func] tournaments with no title

main
yaemiku 2022-07-25 22:37:30 +02:00
parent 0f417511c1
commit ceb3035bd8
Signed by: podlaskizbs
GPG Key ID: ADC039636B3E4AAB
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.0.5 on 2022-07-25 20:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0002_tournament_photo'),
]
operations = [
migrations.AlterField(
model_name='tournament',
name='title',
field=models.CharField(blank=True, default='', max_length=250, verbose_name='Tytuł'),
),
]

View File

@ -9,7 +9,7 @@ from filebrowser.fields import FileBrowseField
class Tournament(OrderableModel):
photo = FileBrowseField(
'Zdjęcie', directory='inneturnieje/', max_length=200, blank=True)
title = models.CharField('Tytuł', max_length=250)
title = models.CharField('Tytuł', default='', blank=True, max_length=250)
content = HTMLField('Tekst')
link = models.TextField('Link do wyników')