0001-misc-give-login-view-a-list-of-visible-blocks-28370.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': collections.OrderedDict( |
|
369 |
(block['id'], block) for block in blocks if not block['is_hidden']), |
|
368 | 370 |
redirect_field_name: redirect_to, |
369 | 371 |
}) |
370 | 372 |
return render(request, template_name, context) |
371 |
- |