Author: Alex
Date: 2009-12-22 08:37:26 -0600 (Tue, 22 Dec 2009)
New Revision: 11949
Modified:
django/branches/soc2009/multidb/django/contrib/contenttypes/generic.py
django/branches/soc2009/multidb/django/contrib/localflavor/us/models.py
django/branches/soc2009/multidb/django/contrib/sessions/backends/db.py
Log:
[soc2009/multidb] Whitespace and comment cleanup. Patch from Russell
Keith-Magee.
Modified: django/branches/soc2009/multidb/django/contrib/contenttypes/generic.py
===================================================================
--- django/branches/soc2009/multidb/django/contrib/contenttypes/generic.py
2009-12-22 14:37:24 UTC (rev 11948)
+++ django/branches/soc2009/multidb/django/contrib/contenttypes/generic.py
2009-12-22 14:37:26 UTC (rev 11949)
@@ -205,6 +205,7 @@
content_type_field_name = self.field.content_type_field_name,
object_id_field_name = self.field.object_id_field_name
)
+
return manager
def __set__(self, instance, value):
Modified:
django/branches/soc2009/multidb/django/contrib/localflavor/us/models.py
===================================================================
--- django/branches/soc2009/multidb/django/contrib/localflavor/us/models.py
2009-12-22 14:37:24 UTC (rev 11948)
+++ django/branches/soc2009/multidb/django/contrib/localflavor/us/models.py
2009-12-22 14:37:26 UTC (rev 11949)
@@ -30,3 +30,4 @@
defaults = {'form_class': USPhoneNumberField}
defaults.update(kwargs)
return super(PhoneNumberField, self).formfield(**defaults)
+
Modified: django/branches/soc2009/multidb/django/contrib/sessions/backends/db.py
===================================================================
--- django/branches/soc2009/multidb/django/contrib/sessions/backends/db.py
2009-12-22 14:37:24 UTC (rev 11948)
+++ django/branches/soc2009/multidb/django/contrib/sessions/backends/db.py
2009-12-22 14:37:26 UTC (rev 11949)
@@ -58,7 +58,6 @@
session_data = self.encode(self._get_session(no_load=must_create)),
expire_date = self.get_expiry_date()
)
- # TODO update for multidb
sid = transaction.savepoint(using=self.using)
try:
obj.save(force_insert=must_create)
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.