[Spike]: Poor UI for embedded model error messages in forms

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: django
    • None
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      The screenshot shows an example embedded model form in the admin. Errors are not correctly associated with their form fields (basically, subfield messages are repeated on parent fields). Error messages shouldn't be repeated and only the fields with errors should be highlighted in red. A technical path forward is unclear.

      The hack to implement embedded model forms results in some awkward UI (repeated message, error not associated to the particular field) when a form has error messages. 

      Acceptance Criteria

      Investigate what it would take to make it such that error messages shouldn't be repeated and only the fields with errors should be highlighted in red. Once a solution is found, convert this ticket from a spike to a solution ticket and provide estimates and guidance on how to resolve the problem.

      Pitfalls

      Implementation like this has not been done in Django before, so there may not be an easy code path to do so. This may require upstream changes to Django in the worst case.

       

            Assignee:
            Unassigned
            Reporter:
            Tim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: