Fix looking up static media needed for Condition value fields.

Review Request #8788 — Created March 1, 2017 and submitted

Information

Djblets
release-0.10.x
8322a95...

Reviewers

ConditionsWidget.media attempted to look up media files needed for all
widgets that comprised the input for the conditions. This didn't
actually work in practice, and failed silently on template load. There
were a couple of problems, including the assumption that the default
value field for a choice was not dynamic, and that all value fields had
form widgets.

This fixes up that code, allowing media to be properly loaded for all
fields in the widget.

Tested along with some other changes that made use of widget media.
Verified that this was no longer crashing and that the media was able
to be returned for the page.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        djblets/forms/widgets.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        djblets/forms/widgets.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.10.x (5b50b84)