/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/commands/shell.py:16: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'cities.models.City'> CityQuerySet.

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
    return hash(self.identity)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
    value = make_hashable(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/tree.py", line 76, in __hash__
    return hash((self.__class__, self.connector, self.negated, *make_hashable(self.children)))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 92, in handle
    exec(sys.stdin.read())
  File "<string>", line 16, in <module>
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 70, in page
    number = self.validate_number(number)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 48, in validate_number
    if number > self.num_pages:
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 97, in num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 91, in count
    return c()
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/query.py", line 392, in count
    return self.query.get_count(using=self.db)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/query.py", line 504, in get_count
    number = obj.get_aggregation(using, ['__count'])['__count']
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/query.py", line 472, in get_aggregation
    outer_query.add_subquery(inner_query, using)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/subqueries.py", line 194, in add_subquery
    self.subquery, self.sub_params = query.get_compiler(using).as_sql(with_col_aliases=True)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 474, in as_sql
    extra_select, order_by, group_by = self.pre_sql_setup()
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 59, in pre_sql_setup
    group_by = self.get_group_by(self.select + extra_select, order_by)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 130, in get_group_by
    expressions = self.collapse_group_by(expressions, having_group_by)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 187, in collapse_group_by
    expr for expr in expressions if expr in pks or getattr(expr, 'alias', None) not in aliases
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 187, in <listcomp>
    expr for expr in expressions if expr in pks or getattr(expr, 'alias', None) not in aliases
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
    return hash(self.identity)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
    value = make_hashable(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
    return hash(self.identity)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
    value = make_hashable(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/tree.py", line 76, in __hash__
    return hash((self.__class__, self.connector, self.negated, *make_hashable(self.children)))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
    return tuple(map(make_hashable, value))
  File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
    hash(value)
TypeError: unhashable type: 'Distance'
