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.

InlinePanel message does not take max_num into account

See original GitHub issue

Issue Summary

The InlinePanel default message when using min_num does not take max_num into account.

Steps to Reproduce

I’m using this inlinepanel:

        InlinePanel(
            'featured_pages',
            label='Featured',
            help_text='Choose two blog pages to feature',
            min_num=2,
            max_num=2,
        )

And after removing the stubbed empty fields on the CMS page, it reports this:

That should probably read Please submit X forms when min_num and max_num are the same value.

Technical details

  • Wagtail version: 2.8.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
meghanabhangecommented, Sep 25, 2020

I have raised a ticket on Django ticket tracker for this issue and submitted a PR to resolve it as well
Once it gets accepted/reviewed this issue will be resolved ✨

3reactions
meghanabhangecommented, Sep 28, 2020

Update - The PR is merged with Django

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding an InlineField to a ClusterableModel does not work
I have a Page class called EventDetail which in ...
Read more >
Panel types — Wagtail Documentation 4.1.1 documentation
Just define that field the normal Django way and pass the field name into FieldPanel when defining your panels. Wagtail will take care...
Read more >
Release 2.6a0 Torchbox - Wagtail Documentation
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel ... StreamFields or rich text fields will not be taken into account.
Read more >
Transforming a Course for Online Learning
Uploading to Ensemble (you need a user account first) . ... It doesn't really matter whether you choose to use folders versus using...
Read more >
OPERA Cloud - Oracle Help Center
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended ...
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