~homeworkprod/byceps

4b7d9b580647b351f7911cf05e28110caa4a934d — Jochen Kupperschmidt 4 years ago 77f05a2
Explicitly pass current party to template
2 files changed, 3 insertions(+), 1 deletions(-)

M byceps/blueprints/party/templates/party/info.html
M byceps/blueprints/party/views.py
M byceps/blueprints/party/templates/party/info.html => byceps/blueprints/party/templates/party/info.html +0 -1
@@ 7,7 7,6 @@

  <h1>{{ title }}</h1>

  {% set party = g.party -%}
  <table class="index">
    <tr>
      <th>Name</th>

M byceps/blueprints/party/views.py => byceps/blueprints/party/views.py +3 -0
@@ 34,6 34,9 @@ def before_request():
@templated
def info():
    """Show information about the current party."""
    return {
        'party': g.party,
    }


@blueprint.route('/archive')