diff --git a/setup.py b/setup.py index e6e7f82..048bf35 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ 'scripts': ['flup'], # index.fcgi needs flup 'mysql': ['mysqlclient'], 'dev': [ - 'pylint', 'pylint-django', # lint + 'pylint<3.2.0', 'pylint-django', # lint 'mypy', 'django-stubs', # type checking ], 'doc': ['sphinx'], diff --git a/squaresdb/gate/views.py b/squaresdb/gate/views.py index fda5b5a..3496597 100644 --- a/squaresdb/gate/views.py +++ b/squaresdb/gate/views.py @@ -402,6 +402,8 @@ def signin_api(request): data['payment'] = payment.pk if paid else 0 data['attendee'] = attendee.pk if present else 0 + # pylint exception needed starting in 3.2.0 + #data['attendee'] = attendee.pk if present else 0 #pylint:possibly-used-before-assignment return JsonResponse(data=data, status=HTTPStatus.CREATED)