                      raise TypeError(u"You tried to pass in the %s method name as a "
                                      u"keyword argument to %s(). Don't do that."
                                      % (key, cls.__name__))
                  if not hasattr(cls, key):
                      raise TypeError(u"%s() received an invalid keyword %r" % (
                          cls.__name__, key))
  
              def view(request, *args, **kwargs):
                  self = cls(**initkwargs)
                  if hasattr(self, 'get') and not hasattr(self, 'head'):
 
</s> remove                     raise TypeError(u"You tried to pass in the %s method name as a "
                                    u"keyword argument to %s(). Don't do that."
 </s> add                     raise TypeError("You tried to pass in the %s method name as a "
                                    "keyword argument to %s(). Don't do that." </s> remove         raise ImportError(u"User model is not to be found.")
 </s> add         raise ImportError("User model is not to be found.") </s> remove         'invalid': _(u"'%s' value has an invalid format. It must be in "
                     u"YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."),
        'invalid_date': _(u"'%s' value has the correct format "
                          u"(YYYY-MM-DD) but it is an invalid date."),
        'invalid_datetime': _(u"'%s' value has the correct format "
                              u"(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) "
                              u"but it is an invalid date/time."),
 </s> add         'invalid': _("'%s' value has an invalid format. It must be in "
                     "YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."),
        'invalid_date': _("'%s' value has the correct format "
                          "(YYYY-MM-DD) but it is an invalid date."),
        'invalid_datetime': _("'%s' value has the correct format "
                              "(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) "
                              "but it is an invalid date/time."), </s> remove         'invalid': _(u"'%s' value has an invalid date format. It must be "
                     u"in YYYY-MM-DD format."),
        'invalid_date': _(u"'%s' value has the correct format (YYYY-MM-DD) "
                          u"but it is an invalid date."),
 </s> add         'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."), </s> remove                 warnings.warn(u"DateTimeField received a naive datetime (%s)"
                              u" while time zone support is active." % value,
 </s> add                 warnings.warn("DateTimeField received a naive datetime (%s)"
                              " while time zone support is active." % value,
                    raise TypeError("%s() received an invalid keyword %r" % (
                      raise TypeError(u"You tried to pass in the %s method name as a "
                                      u"keyword argument to %s(). Don't do that."
                                      % (key, cls.__name__))
                  if not hasattr(cls, key):
                    raise TypeError("%s() received an invalid keyword %r" % (
                          cls.__name__, key))
  
              def view(request, *args, **kwargs):
                  self = cls(**initkwargs)
                  if hasattr(self, 'get') and not hasattr(self, 'head'):
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/compat.py