Object has no attribute 'name_None'
Toen ik !246 (merged) aan het testen was kreeg ik opeens de onderstaande foutmelding. Het gekke: ik kreeg m niet nog een keer. Het leek me goed om m hier te posten.
Het doet me denken aan de exception die @jvrancken(?) en ik tegenkwamen binnen events, waarna ik translation.py aanpastte om dit te voorkomen en toen was niets meer vertaald. Dat is teruggedraaid, dus misschien is het dezelfde issue? Probleem is dus dat ik m nu niet nog een keer kreeg.
Traceback (most recent call last):
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner
response = get_response(request)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/contrib/admin/options.py", line 544, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 211, in inner
return view(request, *args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1512, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/utils/decorators.py", line 67, in _wrapper
return bound_func(*args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/utils/decorators.py", line 63, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1451, in changeform_view
change_message = self.construct_change_message(request, form, formsets, add)
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/contrib/admin/options.py", line 958, in construct_change_message
'object': force_text(changed_object),
File "/Users/Sebastiaan/Development/Thalia/concrexit/venv/lib/python3.5/site-packages/django/utils/encoding.py", line 76, in force_text
s = six.text_type(s)
File "/Users/Sebastiaan/Development/Thalia/concrexit/website/activemembers/models.py", line 238, in __str__
self.until)
File "/Users/Sebastiaan/Development/Thalia/concrexit/website/activemembers/models.py", line 93, in __str__
return self.name
File "/Users/Sebastiaan/Development/Thalia/concrexit/website/utils/translation.py", line 59, in accessor
return getattr(self, localize_attr_name(attr))
AttributeError: 'Committee' object has no attribute 'name_None'