Changes between Initial Version and Version 1 of Ticket #34205


Ignore:
Timestamp:
Dec 9, 2022, 4:16:46 AM (22 months ago)
Author:
James Gillard
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34205

    • Property Summary Arrayfield constraint issue in 4.1Arrayfield constraint validation crash in 4.1
  • Ticket #34205 – Description

    initial v1  
    2020)
    2121}}}
     22
     23And the full stack trace:
     24{{{
     25Traceback (most recent call last):
     26  File ".../django/core/handlers/wsgi.py", line 131, in __call__
     27    response = self.get_response(request)
     28  File ".../django/core/handlers/base.py", line 140, in get_response
     29    response = self._middleware_chain(request)
     30  File ".../django/core/handlers/exception.py", line 57, in inner
     31    response = response_for_exception(request, exc)
     32  File ".../django/core/handlers/exception.py", line 140, in response_for_exception
     33    response = handle_uncaught_exception(
     34  File ".../django/core/handlers/exception.py", line 181, in handle_uncaught_exception
     35    return debug.technical_500_response(request, *exc_info)
     36  File ".../django_extensions/management/technical_response.py", line 40, in null_technical_500_response
     37    raise exc_value.with_traceback(tb)
     38  File ".../django/core/handlers/exception.py", line 55, in inner
     39    response = get_response(request)
     40  File ".../django/core/handlers/base.py", line 197, in _get_response
     41    response = wrapped_callback(request, *callback_args, **callback_kwargs)
     42  File ".../django/contrib/admin/options.py", line 686, in wrapper
     43    return self.admin_site.admin_view(view)(*args, **kwargs)
     44  File ".../django/utils/decorators.py", line 133, in _wrapped_view
     45    response = view_func(request, *args, **kwargs)
     46  File ".../django/views/decorators/cache.py", line 62, in _wrapped_view_func
     47    response = view_func(request, *args, **kwargs)
     48  File ".../django/contrib/admin/sites.py", line 242, in inner
     49    return view(request, *args, **kwargs)
     50  File "/Users/james/journee-git/journee-django-2/apps/catalogue/admin.py", line 1175, in change_view
     51    return super().change_view(
     52  File ".../django_object_actions/utils.py", line 57, in change_view
     53    return super(BaseDjangoObjectActions, self).change_view(
     54  File ".../django/contrib/admin/options.py", line 1893, in change_view
     55    return self.changeform_view(request, object_id, form_url, extra_context)
     56  File ".../django/utils/decorators.py", line 46, in _wrapper
     57    return bound_method(*args, **kwargs)
     58  File ".../django/utils/decorators.py", line 133, in _wrapped_view
     59    response = view_func(request, *args, **kwargs)
     60  File ".../django/contrib/admin/options.py", line 1750, in changeform_view
     61    return self._changeform_view(request, object_id, form_url, extra_context)
     62  File ".../django/contrib/admin/options.py", line 1796, in _changeform_view
     63    form_validated = form.is_valid()
     64  File ".../django/forms/forms.py", line 205, in is_valid
     65    return self.is_bound and not self.errors
     66  File ".../django/forms/forms.py", line 200, in errors
     67    self.full_clean()
     68  File ".../django/forms/forms.py", line 439, in full_clean
     69    self._post_clean()
     70  File ".../django/forms/models.py", line 492, in _post_clean
     71    self.instance.full_clean(exclude=exclude, validate_unique=False)
     72  File ".../django/db/models/base.py", line 1472, in full_clean
     73    self.validate_constraints(exclude=exclude)
     74  File ".../django/db/models/base.py", line 1423, in validate_constraints
     75    constraint.validate(model_class, self, exclude=exclude, using=using)
     76  File ".../django/db/models/constraints.py", line 361, in validate
     77    if (self.condition & Exists(queryset.filter(self.condition))).check(
     78  File ".../django/db/models/query_utils.py", line 141, in check
     79    return compiler.execute_sql(SINGLE) is not None
     80  File ".../django/db/models/sql/compiler.py", line 1398, in execute_sql
     81    cursor.execute(sql, params)
     82  File ".../debug_toolbar/panels/sql/tracking.py", line 230, in execute
     83    return self._record(self.cursor.execute, sql, params)
     84  File ".../debug_toolbar/panels/sql/tracking.py", line 154, in _record
     85    return method(sql, params)
     86  File ".../django/db/backends/utils.py", line 103, in execute
     87    return super().execute(sql, params)
     88  File ".../django/db/backends/utils.py", line 67, in execute
     89    return self._execute_with_wrappers(
     90  File ".../django/db/backends/utils.py", line 80, in _execute_with_wrappers
     91    return executor(sql, params, many, context)
     92  File ".../django/db/backends/utils.py", line 89, in _execute
     93    return self.cursor.execute(sql, params)
     94IndexError: tuple index out of range
     95}}}
Back to Top