                  view_name=self.opts.view_name,
                  lookup_field=self.opts.lookup_field
              )
              ret = self._dict_class()
              ret['url'] = url_field
              ret.update(fields)
              fields = ret
  
          return fields
  
 
</s> remove         if 'url' not in fields:
 </s> add         if self.opts.url_field_name not in fields: </s> remove             return data.get('url', None)
 </s> add             return data.get(self.opts.url_field_name, None)
            ret[self.opts.url_field_name] = url_field
                  view_name=self.opts.view_name,
                  lookup_field=self.opts.lookup_field
              )
              ret = self._dict_class()
            ret[self.opts.url_field_name] = url_field
              ret.update(fields)
              fields = ret
  
          return fields
  
keep keep keep keep replace keep keep keep keep keep
 Make HyperlinkedModelSerializer `url` field name customizable 
rest_framework/serializers.py