          Return the complete set of default fields for the object, as a dict.
          """
          return {}
  
      def get_fields(self, nested=False):
          """
          Returns the complete set of fields for the object as a dict.
  
          This will be the set of any explicitly declared fields,
          plus the set of fields returned by default_fields().
 
</s> remove         plus the set of fields returned by default_fields().
 </s> add         plus the set of fields returned by get_default_fields(). </s> remove     def default_fields(self, nested=False):
 </s> add     def get_default_fields(self): </s> remove         # TODO: Modify this so that it's called on init, and drop
        #       serialize/obj/data arguments.
        #
        #       We *could* provide a hook for dynamic fields, but
        #       it'd be nice if the default was to generate fields statically
        #       at the point of __init__
 </s> add  </s> remove     def default_fields(self, nested=False):
 </s> add     def get_default_fields(self): </s> remove         fields = self.get_fields(nested=bool(self.opts.depth))
 </s> add         fields = self.get_fields()
    def get_fields(self):
          Return the complete set of default fields for the object, as a dict.
          """
          return {}
  
    def get_fields(self):
          """
          Returns the complete set of fields for the object as a dict.
  
          This will be the set of any explicitly declared fields,
          plus the set of fields returned by default_fields().
keep keep keep keep replace keep keep keep keep keep
 Cache default fields per serializer instance for improved performance 
rest_framework/serializers.py