      strings, rather than kept as lazy objects.
  
      If strings_only is True, don't convert (some) non-string-like objects.
      """
      if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float)):
          return s
      try:
          if not isinstance(s, basestring,):
              if hasattr(s, '__unicode__'):
                  s = unicode(s)
 
</s> remove [{"pk": null, "model": "serializers.movie", "fields": {"actor": "Za\u017c\u00f3\u0142\u0107", "title": "Movie 2"}}]
 </s> add [{"pk": null, "model": "serializers.movie", "fields": {"price": "0.00", "actor": "Za\u017c\u00f3\u0142\u0107", "title": "Movie 2"}}]
    if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float, Decimal)):
      strings, rather than kept as lazy objects.
  
      If strings_only is True, don't convert (some) non-string-like objects.
      """
    if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float, Decimal)):
          return s
      try:
          if not isinstance(s, basestring,):
              if hasattr(s, '__unicode__'):
                  s = unicode(s)
keep keep keep keep replace keep keep keep keep keep
 Fixed #5903 -- DecimalField.get_default() now correctly returns a Decimal object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9823 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/utils/encoding.py