Projet

Général

Profil

0001-misc-add-count-of-visible-blocks-to-login-view-conte.patch

Frédéric Péters, 27 novembre 2018 14:17

Télécharger (918 octets)

Voir les différences:

Subject: [PATCH] misc: add count of visible blocks to login view context
 (#28370)

 src/authentic2/views.py | 1 +
 1 file changed, 1 insertion(+)
src/authentic2/views.py
365 365
        'methods': rendered_forms,
366 366
        # new definition
367 367
        'blocks': collections.OrderedDict((block['id'], block) for block in blocks),
368
        'visible_blocks_count': len([x for x in blocks if not x['is_hidden']]),
368 369
        redirect_field_name: redirect_to,
369 370
    })
370 371
    return render(request, template_name, context)
371
-