Permalink
Browse files

This commit adds the resource's docstring to the 'implementation note…

…' section.
  • Loading branch information...
1 parent 9fe92f0 commit ab68549002920fdbf1bada7832588d13e04c50ab Maxime Gaudin committed Dec 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tastypie_swagger/mapping.py
@@ -96,6 +96,7 @@ def build_detail_operation(self, method='get'):
'parameters': [self.build_parameter(paramType='path', name='id', dataType='int', description='ID of resource')],
'responseClass': 'Object',
'nickname': '%s-detail' % self.resource_name,
+ 'notes': self.resource.__doc__,
}
return operation
@@ -105,6 +106,7 @@ def build_list_operation(self, method='get'):
'parameters': self.build_parameters_from_filters(),
'responseClass': 'List',
'nickname': '%s-list' % self.resource_name,
+ 'notes': self.resource.__doc__,
}
def build_detail_api(self):

0 comments on commit ab68549

Please sign in to comment.