Changeset 6269
- Timestamp:
- 09/15/07 04:14:51 (10 months ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/db/models/base.py (modified) (2 diffs)
- django/trunk/tests/modeltests/signals (added)
- django/trunk/tests/modeltests/signals/__init__.py (added)
- django/trunk/tests/modeltests/signals/models.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r6256 r6269 297 297 Geert Vanderkelen 298 298 viestards.lists@gmail.com 299 George Vilches <gav@thataddress.com> 299 300 Vlado <vlado@labath.org> 300 301 Milton Waddams django/trunk/django/db/models/base.py
r6200 r6269 248 248 cursor.execute(subsel, (getattr(self, self._meta.order_with_respect_to.attname),)) 249 249 db_values.append(cursor.fetchone()[0]) 250 record_exists = False 250 251 if db_values: 251 252 cursor.execute("INSERT INTO %s (%s) VALUES (%s)" % \ … … 262 263 263 264 # Run any post-save hooks. 264 dispatcher.send(signal=signals.post_save, sender=self.__class__, instance=self) 265 dispatcher.send(signal=signals.post_save, sender=self.__class__, 266 instance=self, created=(not record_exists)) 265 267 266 268 save.alters_data = True
