Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

[API] Create Serializer for Projects Endpoint #83

Closed

Description

@BethanyG

Create a Serializer for the New Project api Endpoint. Please review issue #77 as background to make sure the latest GET representation is used, and any POST differences are taken into consideration.

See DRF ModelSerialize, DRF Serializer Relations, and DRF Nested Relationships for more information.

See https://github.com/codebuddies/backend/blob/master/cbv3_django_prototype/cbv3_django_prototype/resources/serializers.py as one implementation done for resources.

Please note that the serializer code related to Tags will probably move to a utility file or class shortly (or we will find a centralized way of serializing tags), and should not be copied or re-done for this endpoint.

Activity

  1. added
    enhancement
    on Feb 22, 2020
  2. added this to the projects milestone on Feb 22, 2020
  3. BethanyG commented on Mar 4, 2020

    @BethanyG
    MemberAuthor

    As of PR #96, tags serialization is handled by an app, tagging. Below is an example from resources on how tagging is used:

    from rest_framework import serializers
    from .models import Resource
    from userauth.serializers import UserSerializer
    from tagging.serializers import TagSerializer, TagsSerializerField
    
    
    class ResourceSerializer(TagSerializer, serializers.ModelSerializer):
    
        tags = TagsSerializerField(model_field='tags', default='')
        media_type = serializers.SerializerMethodField()
        user = UserSerializer(read_only=True)
  4. BethanyG commented on Aug 16, 2020

    @BethanyG
    MemberAuthor

    Closing as no longer relevant to current development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions