Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Exposing pk in responses for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Apr 30, 2018
1 parent f33b493 commit 37e0d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulpcore/pulpcore/app/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ModelSerializer(serializers.HyperlinkedModelSerializer):
"""

class Meta:
fields = ('_href', 'created')
fields = ('id', '_href', 'created')

created = serializers.DateTimeField(
help_text=_('Timestamp of creation.'),
Expand Down

0 comments on commit 37e0d07

Please sign in to comment.