Hi thanks for the response.
can you please let me know how to pass the below array in the serializer
project_array = {'project_type': project_type}
serializer = ProjectListSerializer(project_array, many=True)
return Response(serializer.data)
when i pass this i am getting the below error
Got AttributeError when attempting to get a value for field
`project_number` on serializer `ProjectListSerializer`
please help me how to resolve this.
Regards,
Anil Sebastin
On Tue, Feb 16, 2021 at 7:58 PM Omkar Parab <[email protected]> wrote:
> pass your multiple query sets using the get_context_data" method.
>
> 👇
>
> https://docs.djangoproject.com/en/3.1/topics/class-based-views/generic-display/
>
> On Tue, Feb 16, 2021, 7:28 PM Anil s <[email protected]> wrote:
>
>>
>> Hello Everyone:
>>
>> Can somebody please tell me how to pass multiple query sets in Django.
>>
>> Thank you for your help.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/2wd6MUE9iqo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJY8mfwVnvzWjzgLrmJ2akcuVv-szk0oeWkJK74LfmbPPmvuOw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJY8mfwVnvzWjzgLrmJ2akcuVv-szk0oeWkJK74LfmbPPmvuOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAH9gtO9YzdGxECJr1j%3De_%3Di1_gvkwS%3DcMpdfMZpfG9PFRHgnug%40mail.gmail.com.