Nested model serializer error

This page summarizes the projects mentioned and recommended in the original post on /r/learndjango

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • django-countries

    A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

  • Hi, CountryField comes from django-countries (https://github.com/SmileyChris/django-countries) and is definitely not the source of the problem (for context, I have already created a basic API endpoint that displays a user profile i.e an instance of CustomUser). As for your second question, I concur that this is probably where the error lies from discussing with people over SO. However, I am not entirely sure how I can fix it. If I swap out `'''`CustomUserDetailSerializerSM''' for '''CustomUserSocialMediaSerializer''', my view would only show the user_id, social_media and social_media_url, whereas I am trying to show both the social media details as well as details about the '''CustomUser''' instance associated with those social media details (as queried using the '''username''' argument in the URL pattern).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts