[func] blank html content
parent
af8d71a4ea
commit
5225224164
|
|
@ -6,7 +6,7 @@ from core.utils import SingletonModel
|
||||||
|
|
||||||
|
|
||||||
class Atu(SingletonModel):
|
class Atu(SingletonModel):
|
||||||
content = HTMLField('Tekst')
|
content = HTMLField('Tekst', default='', blank=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return 'Stowarzyszenie Brydżowe ATU'
|
return 'Stowarzyszenie Brydżowe ATU'
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from tinymce.models import HTMLField
|
||||||
|
|
||||||
class Calendar(models.Model):
|
class Calendar(models.Model):
|
||||||
year = models.IntegerField('Rok', primary_key=True)
|
year = models.IntegerField('Rok', primary_key=True)
|
||||||
content = HTMLField('Kalendarz')
|
content = HTMLField('Kalendarz', default='', blank=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'Kalendarz {self.year}'
|
return f'Kalendarz {self.year}'
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from core.utils import SingletonModel
|
||||||
|
|
||||||
|
|
||||||
class GrandPrixB(SingletonModel):
|
class GrandPrixB(SingletonModel):
|
||||||
content = HTMLField('Tekst GPB')
|
content = HTMLField('Tekst GPB', default='', blank=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return 'Grand Prix Białegostoku'
|
return 'Grand Prix Białegostoku'
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ from core.utils import SingletonModel
|
||||||
|
|
||||||
class Post(OrderableModel):
|
class Post(OrderableModel):
|
||||||
title = models.CharField('Tytuł', default='', blank=True, max_length=250)
|
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)
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
@ -20,7 +20,7 @@ class Post(OrderableModel):
|
||||||
|
|
||||||
|
|
||||||
class GrandPrixW(SingletonModel):
|
class GrandPrixW(SingletonModel):
|
||||||
content = HTMLField('Tekst GPW')
|
content = HTMLField('Tekst GPW', default='', blank=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return 'Grand Prix Województwa'
|
return 'Grand Prix Województwa'
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class Tournament(OrderableModel):
|
||||||
photo = FileBrowseField(
|
photo = FileBrowseField(
|
||||||
'Zdjęcie', directory='inneturnieje/', max_length=200, blank=True)
|
'Zdjęcie', directory='inneturnieje/', max_length=200, blank=True)
|
||||||
title = models.CharField('Tytuł', default='', blank=True, max_length=250)
|
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')
|
link = models.TextField('Link do wyników')
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue