Skip to content

Commit

Permalink
Made quotations a simple list rather than keyed by id in author_detai…
Browse files Browse the repository at this point in the history
…ls endpoint
  • Loading branch information
jessamynsmith committed Apr 20, 2022
1 parent cc9ee67 commit b2a9b70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quotations/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Meta:


class AuthorDetailSerializer(serializers.ModelSerializer):
underquoted = QuotationOnlySerializer(many=True, read_only=True)
underquoted = QuotationSerializer(many=True, read_only=True)

class Meta:
model = quotation_models.Author
Expand Down
2 changes: 1 addition & 1 deletion underquoted/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
base_name='quotation_author_create')
router.register(r'quotations', quotation_views.QuotationViewSet, base_name='quotations')
router.register(r'author_summary', quotation_views.AuthorSummaryViewSet, base_name='author_summary')
router.register(r'author_details', quotation_views.AuthorViewSet, base_name='authors')
router.register(r'author_details', quotation_views.AuthorViewSet, base_name='author_details')
router.register(r'authors', quotation_views.QuotationsByAuthorViewSet, base_name='authors')

urlpatterns = [
Expand Down

0 comments on commit b2a9b70

Please sign in to comment.