!FJAJZqQPBEhpfWUdpy:matrix.org

Wagtail Support

358 Members
https://github.com/wagtail/wagtail/wiki/Slack#support29 Servers

Load older messages


SenderMessageTime
2 Dec 2020
@anobis:deepcover.ioanobis joined the room.10:24:05
@anobis:deepcover.ioanobis set a profile picture.11:00:42
10 Dec 2020
@hateyou:matrix.org@hateyou:matrix.org joined the room.05:11:01
@hateyou:matrix.org@hateyou:matrix.org left the room.05:11:14
21 Dec 2020
@shangul:matrix.org@shangul:matrix.org joined the room.11:04:36
@shangul:matrix.org@shangul:matrix.orgUsing wagtailmedia, any API which without an account somebody can upload media with some limits?11:08:18
@shangul:matrix.org@shangul:matrix.orgLet 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@shangul:matrix.orgI want some clues11:20:33
24 Dec 2020
@robin:matrix.wina.berobin left the room.09:35:56
@shangul:matrix.org@shangul:matrix.orgForget my question(s)19:50:12
@shangul:matrix.org@shangul:matrix.org left the room.19:50:16
26 Dec 2020
@lynn:privacytools.io@lynn:privacytools.io left the room.11:44:36
@kimshiland:utwente.io@kimshiland:utwente.io left the room.23:47:49
27 Dec 2020
@desmond:riotchat.de@desmond:riotchat.de left the room.11:42:09
@cyril:fairydust.space@cyril:fairydust.space 17:42:55
@cyril:fairydust.space@cyril:fairydust.space left the room.18:23:58
28 Dec 2020
@leandro:halogen.city@leandro:halogen.city 11:15:11
@leandro:halogen.city@leandro:halogen.city left the room.11:56:42
@ringo:matrixim.cc@ringo:matrixim.cc left the room.12:58:55
@scott:perthchat.org@scott:perthchat.org left the room.20:50:20
@paul:perthchat.org@paul:perthchat.org left the room.21:43:34
10 Jan 2021
@jojo:peek-a-boo.atjojo joined the room.10:06:00
@jojo:peek-a-boo.atjojoHi, I have an issue with "Validation Errors" with nested Orderable models. Best described with a picture at first:10:10:06
@jojo:peek-a-boo.atjojoScreen Shot 2021-01-10 at 10.53.49.png
Download Screen Shot 2021-01-10 at 10.53.49.png
10:10:19
@jojo:peek-a-boo.atjojo 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:peek-a-boo.atjojo

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:peek-a-boo.atjojo *

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:peek-a-boo.atjojo

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:peek-a-boo.atjojo

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:peek-a-boo.atjojo *

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

Show newer messages


Back to Room ListRoom Version: 1