1 | Macintosh:Dtest renevanhoek$ python ./manage.py test t15032
|
---|
2 | Creating test database 'default'...
|
---|
3 | Creating table auth_permission
|
---|
4 | Creating table auth_group_permissions
|
---|
5 | Creating table auth_group
|
---|
6 | Creating table auth_user_user_permissions
|
---|
7 | Creating table auth_user_groups
|
---|
8 | Creating table auth_user
|
---|
9 | Creating table auth_message
|
---|
10 | Creating table django_content_type
|
---|
11 | Creating table django_session
|
---|
12 | Creating table django_site
|
---|
13 | Creating table django_admin_log
|
---|
14 | Creating table t15032_person
|
---|
15 | Creating table t15032_employee
|
---|
16 | Creating table t15032_workhour
|
---|
17 | Installing index for auth.Permission model
|
---|
18 | Installing index for auth.Group_permissions model
|
---|
19 | Installing index for auth.User_user_permissions model
|
---|
20 | Installing index for auth.User_groups model
|
---|
21 | Installing index for auth.Message model
|
---|
22 | Installing index for admin.LogEntry model
|
---|
23 | Installing index for t15032.WorkHour model
|
---|
24 | No fixtures found.
|
---|
25 | E
|
---|
26 | ======================================================================
|
---|
27 | ERROR: testFilterSubclassed (t15032.tests.SubclassedAdminFilterTestCase)
|
---|
28 | ----------------------------------------------------------------------
|
---|
29 | Traceback (most recent call last):
|
---|
30 | File "/Users/renevanhoek/Documents/workspace/Dtest/t15032/tests.py", line 32, in testFilterSubclassed
|
---|
31 | response = self.client.get("/admin/t15032/workhour/?employee__person_ptr__exact=%d" % e1.pk)
|
---|
32 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/test/client.py", line 298, in get
|
---|
33 | response = self.request(**r)
|
---|
34 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/core/handlers/base.py", line 100, in get_response
|
---|
35 | response = callback(request, *callback_args, **callback_kwargs)
|
---|
36 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/contrib/admin/options.py", line 265, in wrapper
|
---|
37 | return self.admin_site.admin_view(view)(*args, **kwargs)
|
---|
38 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/utils/decorators.py", line 76, in _wrapped_view
|
---|
39 | response = view_func(request, *args, **kwargs)
|
---|
40 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/views/decorators/cache.py", line 78, in _wrapped_view_func
|
---|
41 | response = view_func(request, *args, **kwargs)
|
---|
42 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/contrib/admin/sites.py", line 190, in inner
|
---|
43 | return view(request, *args, **kwargs)
|
---|
44 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/utils/decorators.py", line 21, in _wrapper
|
---|
45 | return decorator(bound_func)(*args, **kwargs)
|
---|
46 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/utils/decorators.py", line 76, in _wrapped_view
|
---|
47 | response = view_func(request, *args, **kwargs)
|
---|
48 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/utils/decorators.py", line 17, in bound_func
|
---|
49 | return func(self, *args2, **kwargs2)
|
---|
50 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/contrib/admin/options.py", line 994, in changelist_view
|
---|
51 | self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self.list_editable, self)
|
---|
52 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/contrib/admin/views/main.py", line 64, in __init__
|
---|
53 | self.query_set = self.get_query_set()
|
---|
54 | File "/Users/renevanhoek/Documents/workspace/Dtest/django/contrib/admin/views/main.py", line 193, in get_query_set
|
---|
55 | "Filtering by %s not allowed" % key
|
---|
56 | SuspiciousOperation: Filtering by employee__person_ptr__exact not allowed
|
---|
57 |
|
---|
58 | ----------------------------------------------------------------------
|
---|
59 | Ran 1 test in 0.206s
|
---|
60 |
|
---|
61 | FAILED (errors=1)
|
---|
62 | Destroying test database 'default'...
|
---|
63 | Macintosh:Dtest renevanhoek$
|
---|