Our great sponsors
-
django-countries
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.
-
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.
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).
Related posts
- AttributeError: 'CountryField' object has no attribute 'db_collation'
- Ask HN: Who wants to be hired? (April 2024)
- Unfold: Modern Django admin theme for seamless interface development
- Phase: HashiCorp Vault and AWS Secrets Manager Alternative for Developers
- Phase: HashiCorp Vault and AWS Secrets Manager Alternative for Developers