Add document block to room entry
This commit is contained in:
parent
e88b9a07db
commit
2a6d2fe693
|
|
@ -3,7 +3,7 @@ from django.db import models
|
||||||
from django_extensions.db.models import TitleSlugDescriptionModel
|
from django_extensions.db.models import TitleSlugDescriptionModel
|
||||||
from wagtail.core.fields import StreamField
|
from wagtail.core.fields import StreamField
|
||||||
|
|
||||||
from books.blocks import ImageUrlBlock, LinkBlock, VideoBlock
|
from books.blocks import ImageUrlBlock, LinkBlock, VideoBlock, DocumentBlock
|
||||||
from books.models import TextBlock
|
from books.models import TextBlock
|
||||||
from users.models import SchoolClass
|
from users.models import SchoolClass
|
||||||
|
|
||||||
|
|
@ -32,6 +32,7 @@ class RoomEntry(TitleSlugDescriptionModel):
|
||||||
('text_block', TextBlock()),
|
('text_block', TextBlock()),
|
||||||
('image_url_block', ImageUrlBlock()),
|
('image_url_block', ImageUrlBlock()),
|
||||||
('link_block', LinkBlock()),
|
('link_block', LinkBlock()),
|
||||||
|
('document_block', DocumentBlock()),
|
||||||
('video_block', VideoBlock())
|
('video_block', VideoBlock())
|
||||||
], null=True, blank=True)
|
], null=True, blank=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue