Commits

Waldemar Kornewald committed ce962d5

set default pk value to None on NoSQL DBs

Comments (0)

Files changed (1)

djangotoolbox/db/base.py

         return [datetime.datetime(value, 1, 1, 0, 0, 0, 0),
                 datetime.datetime(value+1, 1, 1, 0, 0, 0, 0)]
 
+    def pk_default_value(self):
+        return None
+
     def value_to_db_auto(self, value):
         """
         Transform a value to an object compatible with the AutoField required