!FJAJZqQPBEhpfWUdpy:matrix.org

Wagtail Support

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

Load older messages


SenderMessageTime
10 Jan 2021
@jojo:peek-a-boo.atjojo *

The CoursePage has this Multifield 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:17:07
@jojo:peek-a-boo.atjojoI can successfully add multiple CourseDates to a CoursePage10:18:19
@jojo:peek-a-boo.atjojoThen save and afterwards add a CourseTime to this Date10:19:05
@jojo:peek-a-boo.atjojoBut whenever I choose to add a CourseDate AND addtitionally at the same time add a CourseTime, and then click save draft or publish, I get the following Validation Errors:10:23:02
@jojo:peek-a-boo.atjojoScreen Shot 2021-01-10 at 11.22.22.png
Download Screen Shot 2021-01-10 at 11.22.22.png
10:23:08
@jojo:peek-a-boo.atjojoScreen Shot 2021-01-10 at 11.23.16.png
Download Screen Shot 2021-01-10 at 11.23.16.png
10:23:32
@jojo:peek-a-boo.atjojoObviously the CourseDate is saved properly but the CourseTime is not10:24:00
@jojo:peek-a-boo.atjojoI had a look in the database to understand the relations between the tables better and my vague guess is that wagtail tries to save the CourseDates and CourseTimes at the same time. This can't work because the CourseDates entry/primary key has to exist prior to adding a related CourseDate in the coursedates table. 10:26:24
@jojo:peek-a-boo.atjojoIs anyone still with me and would like to kindly point me in the right direction? Long story short: How would I advise wagtail admin panel to save the data in the correct order: First save to the CourseDates table - and only THEN save to the CourseTimes table.10:27:51
@jojo:peek-a-boo.atjojoThanks in advance for any hints how to solve this! :-)10:28:06
12 Jan 2021
@jojo:peek-a-boo.atjojo Not much going on in this room. Just if anyone does read my issue here I now took the time to file a stackoverflow question. If you are interested please go ahead and answer there: https://stackoverflow.com/questions/65680004/nested-orderables-validation-errors 08:09:27
@jojo:peek-a-boo.atjojo * Not much going on in this room. Just if anyone does read my issue here I now took the time to file a stackoverflow question. If you are interested please go ahead and answer there: https://stackoverflow.com/questions/65680004/nested-orderables-validation-errors 08:09:56
@donald:hope.netdonald left the room.18:00:51
13 Jan 2021
@lanartri:matrix.orglanartri set a profile picture.11:53:45
15 Jan 2021
@thomas.graf:ise.fraunhofer.dethomas.graf joined the room.20:55:13
16 Jan 2021
@lanartri:matrix.orglanartri left the room.15:44:28
@jojo:peek-a-boo.atjojoAlright, let me rephrase my rather longish question to one sentence: How would one implement date and time pickers in wagtail admin when it should be possible to add several dates (days) and each day could have several times attached to it. Anyone had implemented a similar concept already and can point me to examples? Thanks in advance!16:14:21
16 Feb 2021
@matthew:nltrix.net@matthew:nltrix.net removed their display name matthew.07:49:11
@matthew:nltrix.net@matthew:nltrix.net left the room.08:41:33
@jangondol:matrix.orgjangondol joined the room.11:13:15
21 Feb 2021
@wacatal:matrix.orgwacatal joined the room.00:19:17
3 Mar 2021
@nick-matrix:matrix.orgnick-matrix joined the room.18:03:50
@nick-matrix:matrix.orgnick-matrixI followed instructions in the documentation to integrate wagtail to an existing django project. Everything works well as per my needs . But I just want to remove the default home page and replace it with blogIndexPage. My project is served at: localhost:8000/ My wagtail's default homepage is served at localhost:8000/blog and My blogIndexPage is served at localhost:8000/blog/blog I want localhost:8000/blog/ to show the blogIndexPage. Can anyone help?18:36:20
@jojo:peek-a-boo.atjojothis channel is dead19:24:33
@jojo:peek-a-boo.atjojosee my question above. no reactions or even reads19:25:25
@jojo:peek-a-boo.atjojotry the slack channel19:26:27
@jojo:peek-a-boo.atjojoor file a questions on stackverflow19:27:08
@jojo:peek-a-boo.atjojohth19:27:10
@nick-matrix:matrix.orgnick-matrix thanks jojo 20:16:19
@nick-matrix:matrix.orgnick-matrixbtw i found the answer in r/django reddit.20:17:40

There are no newer messages yet.


Back to Room List