diff --git a/db/atu/models.py b/db/atu/models.py index 2a1fa99..eaf6a5c 100644 --- a/db/atu/models.py +++ b/db/atu/models.py @@ -6,7 +6,7 @@ from core.utils import SingletonModel class Atu(SingletonModel): - content = HTMLField('Tekst') + content = HTMLField('Tekst', default='', blank=True) def __str__(self): return 'Stowarzyszenie Brydżowe ATU' diff --git a/db/calendar/models.py b/db/calendar/models.py index b9a7d64..f6fd26e 100644 --- a/db/calendar/models.py +++ b/db/calendar/models.py @@ -6,7 +6,7 @@ from tinymce.models import HTMLField class Calendar(models.Model): year = models.IntegerField('Rok', primary_key=True) - content = HTMLField('Kalendarz') + content = HTMLField('Kalendarz', default='', blank=True) def __str__(self): return f'Kalendarz {self.year}' diff --git a/db/gpb/models.py b/db/gpb/models.py index 845797f..419d884 100644 --- a/db/gpb/models.py +++ b/db/gpb/models.py @@ -6,7 +6,7 @@ from core.utils import SingletonModel class GrandPrixB(SingletonModel): - content = HTMLField('Tekst GPB') + content = HTMLField('Tekst GPB', default='', blank=True) def __str__(self): return 'Grand Prix Białegostoku' diff --git a/db/main/models.py b/db/main/models.py index d65ffd1..4bb589d 100644 --- a/db/main/models.py +++ b/db/main/models.py @@ -8,7 +8,7 @@ from core.utils import SingletonModel class Post(OrderableModel): title = models.CharField('Tytuł', default='', blank=True, max_length=250) - content = HTMLField('Treść') + content = HTMLField('Treść', default='', blank=True) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): @@ -20,7 +20,7 @@ class Post(OrderableModel): class GrandPrixW(SingletonModel): - content = HTMLField('Tekst GPW') + content = HTMLField('Tekst GPW', default='', blank=True) def __str__(self): return 'Grand Prix Województwa' diff --git a/db/tournaments/models.py b/db/tournaments/models.py index e1b4f2f..f186aad 100644 --- a/db/tournaments/models.py +++ b/db/tournaments/models.py @@ -10,7 +10,7 @@ class Tournament(OrderableModel): photo = FileBrowseField( 'Zdjęcie', directory='inneturnieje/', max_length=200, blank=True) title = models.CharField('Tytuł', default='', blank=True, max_length=250) - content = HTMLField('Tekst') + content = HTMLField('Tekst', default='', blank=True) link = models.TextField('Link do wyników') def __str__(self):