Skip to content

Commit

Permalink
set default pk value to None on NoSQL DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldemar Kornewald committed Feb 20, 2011
1 parent 518773f commit 9386305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djangotoolbox/db/base.py
Expand Up @@ -58,6 +58,9 @@ def year_lookup_bounds(self, value):
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
Expand Down

0 comments on commit 9386305

Please sign in to comment.