Server Error 500 when in Admin > Users and clicking on a User
Reproduction Steps:
- Log into alliance auth
- Click on the Admin link at the top right hand of the screen
- Under the Authentication group click on Users
- Click on the name of any user
- Server Reports 500 error
Server Versions:
- Django v2.1
- Alliance Auth v2.2.2
- Python v3.5
Modules: admin, auth, authentication, bfat, contenttypes, corputils, discord, django_celery_beat, esi, eve_autogroups, eveonline, groupmanagement, moonstuff, mumble, notifications, optimer, permissions_tool, services, sessions, structures, timerboard
Log is below:
[12/Dec/2019 01:50:01] ERROR [django.request:228] Internal Server Error: /admin/authentication/user/1575/change/ Traceback (most recent call last): File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response response = self.process_exception_by_middleware(e, request)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/core/handlers/base.py", line 124, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 607, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/utils/decorators.py", line 142, in _wrapped_view response = view_func(request, *args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 223, in inner return view(request, *args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1650, in change_view return self.changeform_view(request, object_id, form_url, extra_context)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/utils/decorators.py", line 45, in _wrapper return bound_method(*args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/utils/decorators.py", line 142, in _wrapped_view response = view_func(request, *args, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1536, in changeform_view return self._changeform_view(request, object_id, form_url, extra_context)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1593, in _changeform_view formsets, inline_instances = self._create_formsets(request, obj, change=True)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1945, in _create_formsets for FormSet, inline in self.get_formsets_with_inlines(*get_formsets_args):
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 795, in get_formsets_with_inlines yield inline.get_formset(request, obj), inline
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/allianceauth/authentication/admin.py", line 72, in get_formset formset = super().get_formset(request, obj=obj, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 2027, in get_formset fields = flatten_fieldsets(self.get_fieldsets(request, obj))
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 328, in get_fieldsets return [(None, {'fields': self.get_fields(request, obj)})]
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 319, in get_fields form = self._get_form_for_get_fields(request, obj)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 2108, in _get_form_for_get_fields return self.get_formset(request, obj, fields=None).form
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/allianceauth/authentication/admin.py", line 72, in get_formset formset = super().get_formset(request, obj=obj, **kwargs)
File "/home/minerva_arbosa/venv/auth/lib/python3.5/site-packages/django/contrib/admin/options.py", line 2055, in get_formset can_add = self.has_add_permission(request, obj) if request else True TypeError: has_add_permission() takes 2 positional arguments but 3 were given