2 Dec 2020 |
| anobis joined the room. | 10:24:05 |
| anobis set a profile picture. | 11:00:42 |
10 Dec 2020 |
| @hateyou:matrix.org joined the room. | 05:11:01 |
| @hateyou:matrix.org left the room. | 05:11:14 |
21 Dec 2020 |
| @shangul:matrix.org joined the room. | 11:04:36 |
@shangul:matrix.org | Using wagtailmedia, any API which without an account somebody can upload media with some limits? | 11:08:18 |
@shangul:matrix.org | Let me ask the actual question: I want to create a site in which anyone can upload medias and anyone with an account and with the right permissions can view/listen to those medias. | 11:20:22 |
@shangul:matrix.org | I want some clues | 11:20:33 |
24 Dec 2020 |
| robin left the room. | 09:35:56 |
@shangul:matrix.org | Forget my question(s) | 19:50:12 |
| @shangul:matrix.org left the room. | 19:50:16 |
26 Dec 2020 |
| @lynn:privacytools.io left the room. | 11:44:36 |
| @kimshiland:utwente.io left the room. | 23:47:49 |
27 Dec 2020 |
| @desmond:riotchat.de left the room. | 11:42:09 |
| @cyril:fairydust.space | 17:42:55 |
| @cyril:fairydust.space left the room. | 18:23:58 |
28 Dec 2020 |
| @leandro:halogen.city | 11:15:11 |
| @leandro:halogen.city left the room. | 11:56:42 |
| @ringo:matrixim.cc left the room. | 12:58:55 |
| @scott:perthchat.org left the room. | 20:50:20 |
| @paul:perthchat.org left the room. | 21:43:34 |
10 Jan 2021 |
| jojo joined the room. | 10:06:00 |
jojo | Hi, I have an issue with "Validation Errors" with nested Orderable models. Best described with a picture at first: | 10:10:06 |
jojo | Download Screen Shot 2021-01-10 at 10.53.49.png | 10:10:19 |
jojo | I have a page type called "CoursePage" - on this Page multiple Orderables "CourseDates" can be added - furthermore each CourseDate can have one or more "CourseTimes". Relation is made via using ParentalKey. | 10:12:35 |
jojo | The CoursePage has this content panel:
MultiFieldPanel(
[
InlinePanel(
"course_dates",
max_num=100,
min_num=1,
label="Date",
classname="")
],
heading="Course dates (add up to 100 dates)",
classname="collapsible"
),
| 10:14:01 |
jojo | * The CoursePage has this Miltufield content panel:
MultiFieldPanel(
[
InlinePanel(
"course_dates",
max_num=100,
min_num=1,
label="Date",
classname="")
],
heading="Course dates (add up to 100 dates)",
classname="collapsible"
),
| 10:14:13 |
jojo | This is the CourseDates model
class CourseDates(ClusterableModel, Orderable):
"""multiple course dates for the course page."""
page = ParentalKey("kswebsite.CoursePage", related_name="course_dates")
class Meta:
ordering = ['date']
date = models.DateField(
"Date",
auto_now=False,
auto_now_add=False,
null=True,
blank=False,
)
panels = [
FieldPanel("date", classname=""),
InlinePanel(
"course_times", max_num=5, min_num=1, label="Time",
heading="Add course times"
)
]
| 10:14:48 |
jojo | And finally the CourseTimes model:
class CourseTimes(Orderable):
"""multiple course times for the CourseDates Orderable."""
date_parent = ParentalKey(
"kswebsite.CourseDates",
related_name="course_times",
null=True,
blank=False,
on_delete=models.SET_NULL,
)
time_from = models.TimeField(
"From",
auto_now=False,
auto_now_add=False,
null=True,
blank=True,
)
time_to = models.TimeField(
"To",
auto_now=False,
auto_now_add=False,
null=True,
blank=True,
)
time_description = models.CharField(
"Descr",
max_length=20,
default="Kurseinheit",
null=True,
blank=True,
)
panels = [
FieldRowPanel(
[
FieldPanel("time_from", classname=""),
FieldPanel("time_to", classname=""),
],
),
FieldPanel("time_description", classname=""),
]
| 10:15:29 |
jojo | * And finally the CourseTimes model:
class CourseTimes(Orderable):
"""multiple course times for the CourseDates Orderable."""
date_parent = ParentalKey(
"kswebsite.CourseDates",
related_name="course_times",
null=True,
blank=False,
on_delete=models.SET_NULL,
)
time_from = models.TimeField(
"From",
auto_now=False,
auto_now_add=False,
null=True,
blank=False,
)
time_to = models.TimeField(
"To",
auto_now=False,
auto_now_add=False,
null=True,
blank=False,
)
time_description = models.CharField(
"Descr",
max_length=20,
default="Kurseinheit",
null=True,
blank=False,
)
panels = [
FieldRowPanel(
[
FieldPanel("time_from", classname=""),
FieldPanel("time_to", classname=""),
],
),
FieldPanel("time_description", classname=""),
]
| 10:16:29 |