Actions
Issue #3216
closedCreatedResourceSerializer missing "Meta.model" attribute
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 30
Quarter:
Description
Right now this breaks when we try to access the live API
AssertionError at /api/v3/docs/
Class CreatedResourceSerializer missing "Meta.model" attribute
The error originates from django rest framework's get_fields() function [0].
I would suggest we remedy this by adding the necessary Meta.model and Meta.fields to the CreatedResourceSerializer[1]
[0] https://github.com/encode/django-rest-framework/blob/master/rest_framework/serializers.py#L977
[1] https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/serializers/task.py#L21
Actions
Adds Class Meta for CreatedResource
closes #3216 https://pulp.plan.io/issues/3216