ERROR test_ admin orders order add apps core tests test_admin Integrat

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
ERROR: test_/admin/orders/order/add/ (apps.core.tests.test_admin.IntegrationAdminTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/remontnik_tools/apply_tests/admin.py", line 17, in test_admin_url
response = self.csrf_client.get(url)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/rest_framework/test.py", line 160, in get
response = super(APIClient, self).get(path, data=data, **extra)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/rest_framework/test.py", line 86, in get
return self.generic('GET', path, **r)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/rest_framework/compat.py", line 189, in generic
return self.request(**r)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/rest_framework/test.py", line 157, in request
return super(APIClient, self).request(**kwargs)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/rest_framework/test.py", line 109, in request
request = super(APIRequestFactory, self).request(**kwargs)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/test/client.py", line 440, in request
six.reraise(*exc_info)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
response = response.render()
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/response.py", line 103, in render
self.content = self.rendered_content
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/response.py", line 80, in rendered_content
content = template.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 148, in render
return self._render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/test/utils.py", line 88, in instrumented_test_render
return self.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/loader_tags.py", line 126, in render
return compiled_parent._render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/test/utils.py", line 88, in instrumented_test_render
return self.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/loader_tags.py", line 126, in render
return compiled_parent._render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/test/utils.py", line 88, in instrumented_test_render
return self.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
result = block.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
result = block.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/defaulttags.py", line 201, in render
nodelist.append(node.render(context))
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/loader_tags.py", line 150, in render
return template.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 148, in render
return self._render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/test/utils.py", line 88, in instrumented_test_render
return self.nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/defaulttags.py", line 201, in render
nodelist.append(node.render(context))
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/defaulttags.py", line 201, in render
nodelist.append(node.render(context))
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/defaulttags.py", line 312, in render
return nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/defaulttags.py", line 312, in render
return nodelist.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/base.py", line 844, in render
bit = self.render_node(node, context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 80, in render_node
return node.render(context)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/template/debug.py", line 93, in render
output = force_text(output)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/utils/encoding.py", line 85, in force_text
s = six.text_type(s)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/forms/forms.py", line 508, in __str__
return self.as_widget()
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/forms/forms.py", line 560, in as_widget
return force_text(widget.render(name, self.value(), attrs=attrs))
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/contrib/admin/widgets.py", line 271, in render
output = [self.widget.render(name, value, *args, **kwargs)]
File "/Users/rivethead/www/proj/remontnik2/apps/orders/admin.py", line 37, in render
tags = Tag.objects.filter(id__in=value)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/manager.py", line 92, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/query.py", line 691, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/query.py", line 709, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1287, in add_q
clause, require_inner = self._add_q(where_part, self.used_aliases)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1314, in _add_q
current_negated=current_negated, connector=connector)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1142, in build_filter
value, lookups = self.prepare_lookup_value(value, lookups, can_reuse)
File "/Users/rivethead/www/venv/remf/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1040, in prepare_lookup_value
raise ValueError("Cannot use None as a query value")
ValueError: Cannot use None as a query value