Implement model stubs
The data model will be the following:
-
DisplayGroup
- A display group can hold several displays (one in the simplest case), and contains the configuration for these displays
- It has at least the following fields:
name
,slug
-
Display
- A display configures a single info screen
- It is always linked to a display group
- It has at least the following fields:
hostname
-
Slide
- A slide defines one content file to display
- It is linked to a display group
- The slides need to be orderable, so there probably needs to be an
order
field on thethrough
model; the Django docs or StackOverflow probably know how to do this, or the dashboard widget code in the AlekSIS-Core - This needs to be a polymorphic model, because there are several types of slides. Copy the mechanism from the
DashboardWidget
system. - Please structure the
models
into a package withbase
andslides
modules, with the latter containing the slide subtypes
-
ForeignURLSlide
- This is a subclass of
Slide
and has one additional field:url
(an URLField)
- This is a subclass of
-
UploadedFileSlide
- This is a subclass of
Slide
and has one additional field:file
(a FileField) - It must accept file types
pdf jpg jpeg png tif bmp ppm avi mov mp4 mkv webm ogv mpg mpeg ts flv
- This is a subclass of
-
StaticContentSlide
- This is a subclass of
Slide
and has one additional field:content
(a RichTextField)
- This is a subclass of
Edited by Nik | Klampfradler