Commits

Alex Burgel committed 2dd50cb

rollback autofield changes

  • Participants
  • Parent commits ff80231

Comments (0)

Files changed (1)

     NonrelDatabaseOperations, NonrelDatabaseWrapper, NonrelDatabaseClient, \
     NonrelDatabaseValidation, NonrelDatabaseIntrospection
 from google.appengine.ext.db.metadata import get_kinds, get_namespaces
-from google.appengine.api.datastore import Query, Delete, Key
+from google.appengine.api.datastore import Query, Delete
 from google.appengine.api.namespace_manager import set_namespace
 import logging
 import os
 
     DEFAULT_MAX_DIGITS = 16
 
-    def value_to_db_auto(self, value):
-        if isinstance(value, Key):
-            return value
-        return super(DatabaseOperations, self).value_to_db_auto(value)
-
     def value_to_db_decimal(self, value, max_digits, decimal_places):
         if value is None:
             return None