question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested InlinePanel

See original GitHub issue

First of all thank you for this wonderful software. I struggled alot to add related_links InlinePanel into Another Section InlinePanel but it gives attribute error of HomePageAnotherSection has no attribute related_links PLEASE HELP. Example Code:

class HomePageAnotherSectionRelatedLink(Orderable, RelatedLink):
    page = ParentalKey('demo.HomePage', related_name='related_links')

class AnotherSection(LinkFields):
    intro = models.CharField(max_length=200, blank=False)
    panel =[
InlinePanel('related_links', label="Related Links")
]

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
heymonkeyriotcommented, Sep 15, 2016

Hi @gasman

I haven’t heard this mentioned in a long time, but a problem I’ve bumped in to on a project that reminded me that we can’t nest inline panels within inline panels (we got around it by defining lots of different models, which worked but was a little clumsy)

Do you know if there’s been any more thought on how nested inline panels may be possible?

2reactions
Sam-Costigancommented, Jan 15, 2019

I have been doing some digging on this as it’s something I’d really love to be able to do. It seems to me that for the most part this limitation is imposed by django-modelcluster. For that reason I have created an issue on that repository: https://github.com/wagtail/django-modelcluster/issues/105

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nested categories/InlinePanel(s) in wagtail - Stack Overflow
I struggle to implement something like "nested categories": ... It seems nested InlinePanel s are the problem?
Read more >
Two levels of Inline Panels with Model Clusters - Google Groups
I'm trying to implement a portfolio index page, where I can add portfolio items (using an inline panel so I can add these...
Read more >
Panel types — Wagtail Documentation 4.1.1 documentation
Panel types¶. Built-in Fields and Choosers¶. Django's field types are automatically recognised and provided with an appropriate widget for input.
Read more >
Wagtail Tip #1: How to replace ParentalManyToManyField ...
... I will talk about How to replace `ParentalManyToManyField` using Wagtail InlinePanel. ... What if you want to do nested Category?
Read more >
Content Paths - Wagtail Localize
Inline child objects are the instances within an inline panel. ... If the ListBlock is nested in a StructBlock , StreamBlock or a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found