Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Debt Report" should work even if a member is missing a first payment #174

Closed
facundobatista opened this issue Mar 17, 2020 · 0 comments
Closed

Comments

@facundobatista
Copy link
Member

facundobatista commented Mar 17, 2020

Currently getting this when listing the report:

TypeError: '>' not supported between instances of 'NoneType' and 'int'
  File "django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "members/views.py", line 60, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "django/contrib/auth/mixins.py", line 52, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "members/views.py", line 174, in get
    debt = logic.get_debt_state(member, limit_year, limit_month)
  File "members/logic.py", line 142, in get_debt_state
    elif member.first_payment_year > limit_year:
facundobatista added a commit that referenced this issue Apr 5, 2020
Support no first payment when checking for debts. Fixes #174.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant