| 1 | # full traceback
|
|---|
| 2 | Environment:
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | Request Method: GET
|
|---|
| 6 | Request URL: http://127.0.0.1:8000/admin/easyaudit/requestevent/
|
|---|
| 7 |
|
|---|
| 8 | Django Version: 3.2.11
|
|---|
| 9 | Python Version: 3.8.10
|
|---|
| 10 | Installed Applications:
|
|---|
| 11 | ['django.contrib.admin',
|
|---|
| 12 | 'django.contrib.auth',
|
|---|
| 13 | 'django.contrib.contenttypes',
|
|---|
| 14 | 'django.contrib.sessions',
|
|---|
| 15 | 'django.contrib.messages',
|
|---|
| 16 | 'django.contrib.staticfiles',
|
|---|
| 17 | 'axes',
|
|---|
| 18 | 'easyaudit']
|
|---|
| 19 | Installed Middleware:
|
|---|
| 20 | ['django.middleware.security.SecurityMiddleware',
|
|---|
| 21 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
|---|
| 22 | 'django.middleware.common.CommonMiddleware',
|
|---|
| 23 | 'django.middleware.csrf.CsrfViewMiddleware',
|
|---|
| 24 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|---|
| 25 | 'django.contrib.messages.middleware.MessageMiddleware',
|
|---|
| 26 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|---|
| 27 | 'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
|
|---|
| 28 | 'axes.middleware.AxesMiddleware']
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | Template error:
|
|---|
| 32 | In template /home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/contrib/admin/templates/admin/base.html, error at line 44
|
|---|
| 33 | 'NoneType' object has no attribute 'day'
|
|---|
| 34 | 34 : </div>
|
|---|
| 35 | 35 : {% block usertools %}
|
|---|
| 36 | 36 : {% if has_permission %}
|
|---|
| 37 | 37 : <div id="user-tools">
|
|---|
| 38 | 38 : {% block welcome-msg %}
|
|---|
| 39 | 39 : {% translate 'Welcome,' %}
|
|---|
| 40 | 40 : <strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
|---|
| 41 | 41 : {% endblock %}
|
|---|
| 42 | 42 : {% block userlinks %}
|
|---|
| 43 | 43 : {% if site_url %}
|
|---|
| 44 | 44 : <a href="{{ site_url } }">{% translate 'View site' %}</a> /
|
|---|
| 45 | 45 : {% endif %}
|
|---|
| 46 | 46 : {% if user.is_active and user.is_staff %}
|
|---|
| 47 | 47 : {% url 'django-admindocs-docroot' as docsroot %}
|
|---|
| 48 | 48 : {% if docsroot %}
|
|---|
| 49 | 49 : <a href="{{ docsroot }}">{% translate 'Documentation' %}</a> /
|
|---|
| 50 | 50 : {% endif %}
|
|---|
| 51 | 51 : {% endif %}
|
|---|
| 52 | 52 : {% if user.has_usable_password %}
|
|---|
| 53 | 53 : <a href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a> /
|
|---|
| 54 | 54 : {% endif %}
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | Traceback (most recent call last):
|
|---|
| 58 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
|
|---|
| 59 | response = get_response(request)
|
|---|
| 60 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 204, in _get_response
|
|---|
| 61 | response = response.render()
|
|---|
| 62 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/response.py", line 105, in render
|
|---|
| 63 | self.content = self.rendered_content
|
|---|
| 64 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
|
|---|
| 65 | return template.render(context, self._request)
|
|---|
| 66 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
|
|---|
| 67 | return self.template.render(context)
|
|---|
| 68 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 170, in render
|
|---|
| 69 | return self._render(context)
|
|---|
| 70 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
|
|---|
| 71 | return self.nodelist.render(context)
|
|---|
| 72 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 73 | bit = node.render_annotated(context)
|
|---|
| 74 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 75 | return self.render(context)
|
|---|
| 76 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
|
|---|
| 77 | return compiled_parent._render(context)
|
|---|
| 78 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
|
|---|
| 79 | return self.nodelist.render(context)
|
|---|
| 80 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 81 | bit = node.render_annotated(context)
|
|---|
| 82 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 83 | return self.render(context)
|
|---|
| 84 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
|
|---|
| 85 | return compiled_parent._render(context)
|
|---|
| 86 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
|
|---|
| 87 | return self.nodelist.render(context)
|
|---|
| 88 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 89 | bit = node.render_annotated(context)
|
|---|
| 90 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 91 | return self.render(context)
|
|---|
| 92 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
|
|---|
| 93 | return compiled_parent._render(context)
|
|---|
| 94 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 162, in _render
|
|---|
| 95 | return self.nodelist.render(context)
|
|---|
| 96 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 97 | bit = node.render_annotated(context)
|
|---|
| 98 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 99 | return self.render(context)
|
|---|
| 100 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
|
|---|
| 101 | result = block.nodelist.render(context)
|
|---|
| 102 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 103 | bit = node.render_annotated(context)
|
|---|
| 104 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 105 | return self.render(context)
|
|---|
| 106 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
|
|---|
| 107 | result = block.nodelist.render(context)
|
|---|
| 108 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 109 | bit = node.render_annotated(context)
|
|---|
| 110 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 111 | return self.render(context)
|
|---|
| 112 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/defaulttags.py", line 312, in render
|
|---|
| 113 | return nodelist.render(context)
|
|---|
| 114 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 938, in render
|
|---|
| 115 | bit = node.render_annotated(context)
|
|---|
| 116 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
|
|---|
| 117 | return self.render(context)
|
|---|
| 118 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/contrib/admin/templatetags/base.py", line 33, in render
|
|---|
| 119 | return super().render(context)
|
|---|
| 120 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/template/library.py", line 214, in render
|
|---|
| 121 | _dict = self.func(*resolved_args, **resolved_kwargs)
|
|---|
| 122 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/contrib/admin/templatetags/admin_list.py", line 379, in date_hierarchy
|
|---|
| 123 | 'choices': [{
|
|---|
| 124 | File "/home/rocha/django-test2/LunchTracker/.venv/lib/python3.8/site-packages/django/contrib/admin/templatetags/admin_list.py", line 380, in <listcomp>
|
|---|
| 125 | 'link': link({year_field: year_lookup, month_field: month_lookup, day_field: day.day}),
|
|---|
| 126 |
|
|---|
| 127 | Exception Type: AttributeError at /admin/easyaudit/requestevent/
|
|---|
| 128 | Exception Value: 'NoneType' object has no attribute 'day'
|
|---|
| 129 |
|
|---|