Changes between Initial Version and Version 1 of Ticket #35898


Ignore:
Timestamp:
Nov 8, 2024, 3:07:13 AM (7 days ago)
Author:
Lorenzo Martini
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35898 – Description

    initial v1  
    33I'm encountering an issue with the django-admin dumpdata command when trying to serialize a model with a ManyToMany relationship to a custom User model. This custom User model inherits from another User model defined in a different app.
    44
    5 It appears that Django is using the default manager of the custom User model, rather than its base manager. This base manager includes prefetch_related calls in its get_queryset function, which I suspect is causing the issue.
     5It appears that Django is using the default manager of the custom User model, rather than its base manager. This custom manager includes prefetch_related calls in its get_queryset function, which I suspect is causing the issue.
    66
    77I've attached a Dockerized Django app that replicates this behavior. You can also find it on GitHub: https://github.com/Martini991/django-dumpdata-bug.
Back to Top