Unverified Commit 78a96034 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Format looots of code

parent 02055acc
......@@ -158,8 +158,8 @@ class RenewalFormView(FormView):
context['study_fees'] = floatformat(settings.MEMBERSHIP_PRICES[
Entry.MEMBERSHIP_STUDY], 2)
context['membership'] = self.request.member.latest_membership
context['was_member'] = (Membership.objects.filter(user=self.request.member,
type=Membership.MEMBER).exists())
context['was_member'] = Membership.objects.filter(
user=self.request.member, type=Membership.MEMBER).exists()
if context['membership'] is not None:
context['membership_type'] = (context['membership']
.get_type_display())
......
......@@ -57,7 +57,8 @@ MAIN_MENU = [
{
'title': _('Summaries & Exams'),
'name': 'education:courses',
# TODO: Remove submenu when the new template is implemented everywhere
# TODO: Remove submenu when the new template is implemented
# everywhere
'submenu': [
{
'title': _('Submit Exam'),
......
......@@ -6,6 +6,8 @@ This file controls what settings are loaded.
Using environment variables you can control the loading of various
overrides.
"""
# flake8: noqa: ignore F403
import os
# Load all default settings because we need to use settings.configure
......
......@@ -4,7 +4,8 @@ register = template.Library()
@register.inclusion_tag('includes/grid_item.html')
def grid_item(title=None, meta_text=None, url=None, image_url=None, ribbon=None, class_name=''):
def grid_item(title=None, meta_text=None, url=None, image_url=None,
ribbon=None, class_name=''):
return {
'title': title,
'url': url,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment