Changes between Initial Version and Version 1 of Ticket #34847, comment 3


Ignore:
Timestamp:
Sep 18, 2023, 12:07:02 PM (14 months ago)
Author:
David Sanders

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34847, comment 3

    initial v1  
    88
    99The docs state that `serialize()` expects a queryset rather than a material list, however, without prefetching we get the same infinite recursion… so I'd wager this will remain accepted.
     10
     11EDIT: I doubt there's something that can be done to fix this other than warn in the docs about the dangers of accessing deferred field attributes during initialisation. Messing with the model during initialisation is [https://docs.djangoproject.com/en/4.2/ref/models/instances/#django.db.models.Model warned against in the docs], though for other reasons.
Back to Top