Changes between Initial Version and Version 2 of Ticket #28575


Ignore:
Timestamp:
Sep 7, 2017, 6:56:01 PM (7 years ago)
Author:
Rachel Tobin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28575

    • Property Type UncategorizedBug
  • Ticket #28575 – Description

    initial v2  
    88
    99Note that *instances* of `Model.DoesNotExist` are pickleable as fixed here: https://code.djangoproject.com/ticket/17776. However the class itself is not.  This is particularly problematic when using the Django test runner with the `--parallel` option enabled when a `Model.DoesNotExist` exception is raised. The result of this is the test runner bailing with a `pickle.PicklingError`, making it exceptionally difficult to debug the cause of the `Model.DoesNotExist`.
    10 
    11 This could be fixed by changing the metaclass that is used here: https://github.com/django/django/blob/1.11.5/django/db/models/base.py#L76 to use a custom metaclass with a `__reduce__` method. A patch is in progress for this.
Back to Top