1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[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
This commit is contained in:
Alex Gaynor 2009-12-22 14:37:26 +00:00
parent 8a20a3e3fc
commit 27c43c3acc
3 changed files with 2 additions and 1 deletions

View File

@ -205,6 +205,7 @@ class ReverseGenericRelatedObjectsDescriptor(object):
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):

View File

@ -30,3 +30,4 @@ class PhoneNumberField(Field):
defaults = {'form_class': USPhoneNumberField}
defaults.update(kwargs)
return super(PhoneNumberField, self).formfield(**defaults)

View File

@ -58,7 +58,6 @@ class SessionStore(SessionBase):
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)