~nataliabidart/django-preflight/cache-status-info

« back to all changes in this revision

Viewing changes to preflight/models.py

[r=james-w] Fixed a silly bug that meant that hidden settings weren't really configurable via the PREFLIGHT_HIDDEN_SETTINGS setting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    else:
126
126
        hidden_settings = HIDDEN_SETTINGS
127
127
    for name in names:
128
 
        if HIDDEN_SETTINGS.match(name):
 
128
        if hidden_settings.search(name):
129
129
            value = '******************'
130
130
        else:
131
131
            value = getattr(settings, name, None)