Replies: 3 comments 1 reply
-
Please Help! |
Beta Was this translation helpful? Give feedback.
-
To be sure I need to have a full error report of Django. |
Beta Was this translation helpful? Give feedback.
-
Root Cause: |
Beta Was this translation helpful? Give feedback.
-
I encountered a DoesNotExist exception while trying to creat a deal from request object via the Django admin. The error details are as follows:
Internal Server Error: /en/123/crm/request/1/change/
Traceback (most recent call last):
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/contrib/admin/options.py", line 718, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/contrib/admin/sites.py", line 241, in inner
return view(request, *args, **kwargs)
File "/home/wing/Downloads/web/freshcrm/django-crm-main/crm/site/requestadmin.py", line 145, in change_view
return super().change_view(
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/contrib/admin/options.py", line 1964, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/utils/decorators.py", line 48, in _wrapper
return bound_method(*args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/contrib/admin/options.py", line 1820, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/contrib/admin/options.py", line 1855, in _changeform_view
ModelForm = self.get_form(
File "/home/wing/Downloads/web/freshcrm/django-crm-main/crm/site/requestadmin.py", line 154, in get_form
works_globally = Department.objects.get(
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/wing/Downloads/web/myvenv/lib/python3.10/site-packages/django/db/models/query.py", line 649, in get
raise self.model.DoesNotExist(
common.models.Department.DoesNotExist: Department matching query does not exist.
Beta Was this translation helpful? Give feedback.
All reactions