mirror of
https://github.com/django/django.git
synced 2025-09-10 04:26:30 +00:00
Fixed #2108 -- allow saving of empty models, rather than just dropping them.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
29f55c8dbb
commit
7e2b888a2d
7 changed files with 24 additions and 0 deletions
|
@ -108,6 +108,9 @@ def get_fulltext_search_sql(field_name):
|
|||
def get_drop_foreignkey_sql():
|
||||
return "DROP CONSTRAINT"
|
||||
|
||||
def get_pk_default_value():
|
||||
return "DEFAULT"
|
||||
|
||||
# Register these custom typecasts, because Django expects dates/times to be
|
||||
# in Python's native (standard-library) datetime/time format, whereas psycopg
|
||||
# use mx.DateTime by default.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue