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
Updated by amacdona@redhat.com about 7 years ago
- Sprint/Milestone set to 52
- Triaged changed from No to Yes
Updated by dkliban@redhat.com about 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Added by dkliban@redhat.com about 7 years ago
Added by dkliban@redhat.com about 7 years ago
Revision 2904dd1c | View on GitHub
Adds Class Meta for CreatedResource
Updated by dkliban@redhat.com about 7 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp|2904dd1c6fa947244c0bb98ca5b84acba15f188e.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Adds Class Meta for CreatedResource
closes #3216 https://pulp.plan.io/issues/3216