  import inspect
  import re
  
  
  # TODO: _IgnoreFieldException
  
  # Map model classes to resource classes
  #_model_to_resource = {}
  
  
 
</s> remove     model = BlogPost
    fields = ('created', 'title', 'slug', 'content', 'url', 'comments')
    ordering = ('-created',)
 </s> add     class Meta:
        model = BlogPost
        fields = ('created', 'title', 'slug', 'content', 'url', 'comments')
        ordering = ('-created',) </s> remove         return property_fields.union(set(as_tuple(self.include))) - set(as_tuple(self.exclude))
 </s> add         return property_fields.union(set(as_tuple(self.Meta.include))) - set(as_tuple(self.Meta.exclude)) </s> remove         return _object_to_data(obj, self)
 </s> add         return self.serialize(obj)
  import inspect
  import re
  
  

  
  # Map model classes to resource classes
  #_model_to_resource = {}
  
  
keep keep keep keep replace keep keep keep keep keep
 Support for nesting resources etc...

--HG--
rename : djangorestframework/tests/resources.py => djangorestframework/tests/serializer.py 
djangorestframework/resources.py