0001-misc-add-count-of-visible-blocks-to-login-view-conte.patch
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 |
- |