lambdalisue/django-inspectional-registration

Admin interface error when clicking on a user

yatahaze opened this issue · 0 comments

AttributeError at /admin/registration/registrationprofile/1/change/
'Options' object has no attribute 'get_all_field_names'



Request Method: GET
Request URL: http://<snip>/admin/registration/registrationprofile/1/change/

Django Version: 1.10
Python Version: 3.4.1
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'registration',
 'registration.supplements.default',
 'base_registration',
 'inventory',
 'purchase_orders',
 'invoicing',
 'customers')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')



Traceback:

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/core/handlers/exception.py" in inner
  39.             response = get_response(request)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in wrapper
  544.                 return self.admin_site.admin_view(view)(*args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/sites.py" in inner
  211.             return view(request, *args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapper
  67.             return bound_func(*args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in bound_func
  63.                 return func.__get__(self, type(self))(*args2, **kwargs2)

File "/usr/lib64/python3.4/contextlib.py" in inner
  30.                 return func(*args, **kwds)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/registration/admin/__init__.py" in change_view
  440.                 request, object_id, form_url, extra_context

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in change_view
  1512.         return self.changeform_view(request, object_id, form_url, extra_context)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapper
  67.             return bound_func(*args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/utils/decorators.py" in bound_func
  63.                 return func.__get__(self, type(self))(*args2, **kwargs2)

File "/usr/lib64/python3.4/contextlib.py" in inner
  30.                 return func(*args, **kwds)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in changeform_view
  1467.                 formsets, inline_instances = self._create_formsets(request, obj, change=True)

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in _create_formsets
  1799.         for FormSet, inline in self.get_formsets_with_inlines(*get_formsets_args):

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in get_formsets_with_inlines
  703.             yield inline.get_formset(request, obj), inline

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in get_formset
  1881.             fields = flatten_fieldsets(self.get_fieldsets(request, obj))

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in get_fieldsets
  298.         return [(None, {'fields': self.get_fields(request, obj)})]

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in get_fields
  1957.         form = self.get_formset(request, obj, fields=None).form

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/django/contrib/admin/options.py" in get_formset
  1886.         exclude.extend(self.get_readonly_fields(request, obj))

File "/home/ryan/apps/kingsway/venv/lib/python3.4/site-packages/registration/admin/__init__.py" in get_readonly_fields
  143.             fields = self.model._meta.get_all_field_names()

Exception Type: AttributeError at /admin/registration/registrationprofile/1/change/
Exception Value: 'Options' object has no attribute 'get_all_field_names'