1 | /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.
|
---|
2 |
|
---|
3 | Traceback (most recent call last):
|
---|
4 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
5 | hash(value)
|
---|
6 | TypeError: unhashable type: 'list'
|
---|
7 |
|
---|
8 | During handling of the above exception, another exception occurred:
|
---|
9 |
|
---|
10 | Traceback (most recent call last):
|
---|
11 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
12 | hash(value)
|
---|
13 | TypeError: unhashable type: 'Distance'
|
---|
14 |
|
---|
15 | During handling of the above exception, another exception occurred:
|
---|
16 |
|
---|
17 | Traceback (most recent call last):
|
---|
18 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
19 | hash(value)
|
---|
20 | TypeError: unhashable type: 'Distance'
|
---|
21 |
|
---|
22 | During handling of the above exception, another exception occurred:
|
---|
23 |
|
---|
24 | Traceback (most recent call last):
|
---|
25 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
26 | hash(value)
|
---|
27 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
|
---|
28 | return hash(self.identity)
|
---|
29 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
|
---|
30 | res = instance.__dict__[self.name] = self.func(instance)
|
---|
31 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
|
---|
32 | value = make_hashable(value)
|
---|
33 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
34 | hash(value)
|
---|
35 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/tree.py", line 76, in __hash__
|
---|
36 | return hash((self.__class__, self.connector, self.negated, *make_hashable(self.children)))
|
---|
37 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
38 | return tuple(map(make_hashable, value))
|
---|
39 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
40 | return tuple(map(make_hashable, value))
|
---|
41 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
42 | return tuple(map(make_hashable, value))
|
---|
43 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
44 | hash(value)
|
---|
45 | TypeError: unhashable type: 'Distance'
|
---|
46 |
|
---|
47 | During handling of the above exception, another exception occurred:
|
---|
48 |
|
---|
49 | Traceback (most recent call last):
|
---|
50 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
51 | hash(value)
|
---|
52 | TypeError: unhashable type: 'list'
|
---|
53 |
|
---|
54 | During handling of the above exception, another exception occurred:
|
---|
55 |
|
---|
56 | Traceback (most recent call last):
|
---|
57 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
58 | hash(value)
|
---|
59 | TypeError: unhashable type: 'Distance'
|
---|
60 |
|
---|
61 | During handling of the above exception, another exception occurred:
|
---|
62 |
|
---|
63 | Traceback (most recent call last):
|
---|
64 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
65 | hash(value)
|
---|
66 | TypeError: unhashable type: 'Distance'
|
---|
67 |
|
---|
68 | During handling of the above exception, another exception occurred:
|
---|
69 |
|
---|
70 | Traceback (most recent call last):
|
---|
71 | File "./manage.py", line 10, in <module>
|
---|
72 | execute_from_command_line(sys.argv)
|
---|
73 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
|
---|
74 | utility.execute()
|
---|
75 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
|
---|
76 | self.fetch_command(subcommand).run_from_argv(self.argv)
|
---|
77 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
|
---|
78 | self.execute(*args, **cmd_options)
|
---|
79 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
|
---|
80 | output = self.handle(*args, **options)
|
---|
81 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 92, in handle
|
---|
82 | exec(sys.stdin.read())
|
---|
83 | File "<string>", line 16, in <module>
|
---|
84 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 70, in page
|
---|
85 | number = self.validate_number(number)
|
---|
86 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 48, in validate_number
|
---|
87 | if number > self.num_pages:
|
---|
88 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
|
---|
89 | res = instance.__dict__[self.name] = self.func(instance)
|
---|
90 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 97, in num_pages
|
---|
91 | if self.count == 0 and not self.allow_empty_first_page:
|
---|
92 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
|
---|
93 | res = instance.__dict__[self.name] = self.func(instance)
|
---|
94 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/core/paginator.py", line 91, in count
|
---|
95 | return c()
|
---|
96 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/query.py", line 392, in count
|
---|
97 | return self.query.get_count(using=self.db)
|
---|
98 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/query.py", line 504, in get_count
|
---|
99 | number = obj.get_aggregation(using, ['__count'])['__count']
|
---|
100 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/query.py", line 472, in get_aggregation
|
---|
101 | outer_query.add_subquery(inner_query, using)
|
---|
102 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/subqueries.py", line 194, in add_subquery
|
---|
103 | self.subquery, self.sub_params = query.get_compiler(using).as_sql(with_col_aliases=True)
|
---|
104 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 474, in as_sql
|
---|
105 | extra_select, order_by, group_by = self.pre_sql_setup()
|
---|
106 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 59, in pre_sql_setup
|
---|
107 | group_by = self.get_group_by(self.select + extra_select, order_by)
|
---|
108 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 130, in get_group_by
|
---|
109 | expressions = self.collapse_group_by(expressions, having_group_by)
|
---|
110 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 187, in collapse_group_by
|
---|
111 | expr for expr in expressions if expr in pks or getattr(expr, 'alias', None) not in aliases
|
---|
112 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 187, in <listcomp>
|
---|
113 | expr for expr in expressions if expr in pks or getattr(expr, 'alias', None) not in aliases
|
---|
114 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
|
---|
115 | return hash(self.identity)
|
---|
116 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
|
---|
117 | res = instance.__dict__[self.name] = self.func(instance)
|
---|
118 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
|
---|
119 | value = make_hashable(value)
|
---|
120 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
121 | return tuple(map(make_hashable, value))
|
---|
122 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
123 | hash(value)
|
---|
124 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 388, in __hash__
|
---|
125 | return hash(self.identity)
|
---|
126 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
|
---|
127 | res = instance.__dict__[self.name] = self.func(instance)
|
---|
128 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/db/models/expressions.py", line 380, in identity
|
---|
129 | value = make_hashable(value)
|
---|
130 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
131 | hash(value)
|
---|
132 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/tree.py", line 76, in __hash__
|
---|
133 | return hash((self.__class__, self.connector, self.negated, *make_hashable(self.children)))
|
---|
134 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
135 | return tuple(map(make_hashable, value))
|
---|
136 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
137 | return tuple(map(make_hashable, value))
|
---|
138 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 16, in make_hashable
|
---|
139 | return tuple(map(make_hashable, value))
|
---|
140 | File "/home/user/.virtualenvs/django-bug/lib/python3.7/site-packages/django/utils/hashable.py", line 13, in make_hashable
|
---|
141 | hash(value)
|
---|
142 | TypeError: unhashable type: 'Distance'
|
---|