#28208: DjangoJsonEncoder does not encode Queryset -------------------------------------+------------------------------------- Reporter: AbrahamGo8 | Owner: nobody Type: New feature | Status: new Component: Core | Version: 1.11 (Serialization) | Severity: Normal | Resolution: Keywords: QuerySet | Triage Stage: DjangoJSONEncoder | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by AbrahamGo8): Replying to [comment:1 Tim Graham]: > Can you explain what you're trying to do? As far as I see, `QuerySet` doesn't have a `serialize()` method. Django provides us {{{django.core.serializers.serialize}}} function to serialize a {{{QuerySet}}}. I want to create a wrapper about {{{DjangoJSONEncoder}}} to include {{{QuerySet}}} ({{{DjangoCustomJSONEncoder}}} for example) serialization but it comes to mind if Django gives us a function to serialize a {{{QuerySet}}} why Django does not include it into {{{DjangoJSONEncoder}}}? So I think that there must be a major issue to not include it. Regards -- Ticket URL: <https://code.djangoproject.com/ticket/28208#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.978854f8a5649923b12d159a9987e692%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.