Traceback (most recent call last):


 "..../solaar/test/Solaar-867edf8516f6a5a2ec78a99cf2755bd7bcc4e99d/lib/solaar/ui/__init__.py", line 165, in _status_changed

window.update(device, need_popup)


 "..../solaar/test/Solaar-867edf8516f6a5a2ec78a99cf2755bd7bcc4e99d/lib/solaar/ui/window.py", line 768, in update

selected_device_id = _find_selected_device_id()


 "..../solaar/test/Solaar-867edf8516f6a5a2ec78a99cf2755bd7bcc4e99d/lib/solaar/ui/window.py", line 370, in _find_selected_device_id

model, item = selection.get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'

Traceback (most recent call last):


 "manage.py", line 10, in <module>

execute_from_command_line(sys.argv)


 "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()


 "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 356, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 283, in run_from_argv

self.execute(*args, **cmd_options)


 "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 330, in execute

output = self.handle(*args, **options)


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/management/commands/update_index.py", line 120, in handle

self.update_backend(backend_name, schema_only=options.get('schema_only', False))


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/management/commands/update_index.py", line 77, in update_backend

index.add_model(model)


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch2.py", line 113, in add_model

index=self.name, doc_type=mapping.get_document_type(), body=mapping.get_mapping(),


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch.py", line 137, in get_mapping

self.get_field_mapping(field) for field in self.model.get_search_fields()


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch.py", line 137, in <genexpr>

self.get_field_mapping(field) for field in self.model.get_search_fields()


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch.py", line 85, in get_field_mapping

sub_field_name, sub_field_mapping = nested_mapping.get_field_mapping(sub_field)


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch.py", line 119, in get_field_mapping

return self.get_field_column_name(field), mapping


 "/usr/local/lib/python3.5/dist-packages/wagtail/wagtailsearch/backends/elasticsearch2.py", line 49, in get_field_column_name

prefix = definition_model._meta.app_label.lower() + '_' + definition_model.__name__.lower() + '__'
AttributeError: 'NoneType' object has no attribute '_meta'
