Django

Code

Show
Ignore:
Timestamp:
07/29/08 00:09:29 (4 months ago)
Author:
mtredinnick
Message:

Fixed #7560 -- Moved a lot of the value conversion preparation for
loading/saving interactions with the databases into django.db.backend. This
helps external db backend writers and removes a bunch of database-specific
if-tests in django.db.models.fields.

Great work from Leo Soto.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/custom_methods/models.py

    r5876 r8131  
    3232            FROM custom_methods_article 
    3333            WHERE pub_date = %s 
    34                 AND id != %s""", [str(self.pub_date), self.id]) 
     34                AND id != %s""", [connection.ops.value_to_db_date(self.pub_date), 
     35                                  self.id]) 
    3536        # The asterisk in "(*row)" tells Python to expand the list into 
    3637        # positional arguments to Article().