Project

Profile

Help

Issue #3216

closed

CreatedResourceSerializer missing "Meta.model" attribute

Added by bizhang over 6 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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 #1

Updated by amacdona@redhat.com over 6 years ago

  • Sprint/Milestone set to 52
  • Triaged changed from No to Yes
Actions #2

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #3

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #4

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 30
Actions #5

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (52)
Actions #6

Updated by daviddavis about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #7

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #8

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF