Browse Source

zbytečné pole address

master
Jméno Příjmení 5 years ago
parent
commit
a795d27c01
  1. 2
      filmovy-festival/home/models.py

2
filmovy-festival/home/models.py

@ -10,13 +10,11 @@ from wagtail.admin.edit_handlers import FieldPanel, InlinePanel
class HomePage(Page): class HomePage(Page):
body = RichTextField(blank=True) body = RichTextField(blank=True)
address = RichTextField(blank=True)
image = models.ForeignKey( image = models.ForeignKey(
'wagtailimages.Image', on_delete=models.PROTECT, related_name='+' 'wagtailimages.Image', on_delete=models.PROTECT, related_name='+'
) )
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [
FieldPanel('body', classname="full"), FieldPanel('body', classname="full"),
FieldPanel('address', classname="full"),
ImageChooserPanel('image'), ImageChooserPanel('image'),
] ]

Loading…
Cancel
Save