Skip to content

Commit

Permalink
[soc2009/multidb] Whitespace and comment cleanup. Patch from Russell …
Browse files Browse the repository at this point in the history
…Keith-Magee.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Dec 22, 2009
1 parent 8a20a3e commit 27c43c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django/contrib/contenttypes/generic.py
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions django/contrib/localflavor/us/models.py
Expand Up @@ -30,3 +30,4 @@ def formfield(self, **kwargs):
defaults = {'form_class': USPhoneNumberField}
defaults.update(kwargs)
return super(PhoneNumberField, self).formfield(**defaults)

1 change: 0 additions & 1 deletion django/contrib/sessions/backends/db.py
Expand Up @@ -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)
Expand Down

0 comments on commit 27c43c3

Please sign in to comment.