Project

Profile

Help

Task #1275

closed

refactor TaskStatus serializer to inherit from ModelSerializer

Added by amacdona@redhat.com over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The other mongoengine models have a serializer class that inherits from ModelSerializer here:

https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/serializers/__init__.py

The model should know about the serializer, example:

https://github.com/pulp/pulp/blob/master/server/pulp/server/db/model/__init__.py

This convention needs to be implemented so that mongoengine document serialization can occur without knowing the document type.

Also available in: Atom PDF