  class DateTimeField(WritableField):
      type_name = 'DateTimeField'
  
      default_error_messages = {
          '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."),
      }
      empty = None
  
      def from_native(self, value):
          if value in validators.EMPTY_VALUES:
 
</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                     raise TypeError(u"%s() received an invalid keyword %r" % (
 </s> add                     raise TypeError("%s() received an invalid keyword %r" % ( </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                     if value == smart_unicode(k2):
 </s> add                     if value == smart_text(k2): </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,
        '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."),
  class DateTimeField(WritableField):
      type_name = 'DateTimeField'
  
      default_error_messages = {
        '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."),
        '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."),
        '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."),
        '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."),
        '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."),
        '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."),
        '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."),
      }
      empty = None
  
      def from_native(self, value):
          if value in validators.EMPTY_VALUES:
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/fields.py