Permalink
Browse files

[soc2009/multidb] Whitespace and comment cleanup. Patch from Russell …

…Keith-Magee.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8a20a3e commit 27c43c3acc1ca29ff3d380cd2b5722803648a5dd @alex alex committed Dec 22, 2009
@@ -205,6 +205,7 @@ def __get__(self, instance, instance_type=None):
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):
@@ -30,3 +30,4 @@ def formfield(self, **kwargs):
defaults = {'form_class': USPhoneNumberField}
defaults.update(kwargs)
return super(PhoneNumberField, self).formfield(**defaults)
+
@@ -58,7 +58,6 @@ def save(self, must_create=False):
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)

0 comments on commit 27c43c3

Please sign in to comment.