Django

Code

Changeset 7487

Show
Ignore:
Timestamp:
04/27/08 19:58:21 (2 months ago)
Author:
adrian
Message:

Fixed a bug with the new QuerySet? update() method where it wasn't committing the transaction (on Postgres, at least)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/query.py

    r7477 r7487  
    285285        query.add_update_values(kwargs) 
    286286        query.execute_sql(None) 
     287        transaction.commit_unless_managed() 
    287288        self._result_cache = None 
    288289    update.alters_data = True