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

Commit

Permalink
Add docstring to fix Sphinx 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
werwty committed Feb 16, 2018
1 parent 5f9926b commit f6be2d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pulpcore/pulpcore/app/serializers/base.py
Expand Up @@ -103,6 +103,16 @@ class Meta:
fields = ('_href',)

def create(self, validated_data):
"""
Handles the creation of a Model with generic related fields.
Args:
validated_data (dict): of data needed to create a Model
Returns:
django.db.model: Meta.model created from the validated_data
"""

# pop related fields out of validated data
generic_field_mappings = self._generic_field_mappings(validated_data)

Expand Down

0 comments on commit f6be2d7

Please sign in to comment.