

def changelist_view(self, request, extra_context=None):
    if (extra_context is None):
        extra_context = {
            
        }
    settings_form = SettingsForm((request.POST or None))
    if settings_form.is_valid():
        settings_form.save()
        settings.clear_cache()
        info(request, _('Settings were successfully updated.'))
        return self.changelist_redirect()
    extra_context['settings_form'] = settings_form
    extra_context['title'] = ('%s %s' % (_('Change'), force_text(Setting._meta.verbose_name_plural)))
    return super(SettingsAdmin, self).changelist_view(request, extra_context)

dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/conf/admin.py SettingsAdmin.changelist_view/original