Changes between Initial Version and Version 1 of Ticket #35898
- Timestamp:
- Nov 8, 2024, 3:07:13 AM (7 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35898 – Description
initial v1 3 3 I'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. 4 4 5 It appears that Django is using the default manager of the custom User model, rather than its base manager. This basemanager includes prefetch_related calls in its get_queryset function, which I suspect is causing the issue.5 It 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. 6 6 7 7 I've attached a Dockerized Django app that replicates this behavior. You can also find it on GitHub: https://github.com/Martini991/django-dumpdata-bug.