Loading django/db/models/query.py +1 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ class QuerySet(object): skip = None if load_fields and not fill_cache: # Some fields have been deferred, so we have to initialise # Some fields have been deferred, so we have to initialize # via keyword arguments. skip = set() init_list = [] Loading django/http/response.py +1 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ class HttpResponseBase(six.Iterator): def __getstate__(self): # SimpleCookie is not pickeable with pickle.HIGHEST_PROTOCOL, so we # serialise to a string instead # serialize to a string instead state = self.__dict__.copy() state['cookies'] = str(state['cookies']) return state Loading django/utils/functional.py +1 −1 Original line number Diff line number Diff line Loading @@ -260,7 +260,7 @@ class LazyObject(object): def _setup(self): """ Must be implemented by subclasses to initialise the wrapped object. Must be implemented by subclasses to initialize the wrapped object. """ raise NotImplementedError('subclasses of LazyObject must provide a _setup() method') Loading tests/properties/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class PropertyTests(TestCase): # The "full_name" property hasn't provided a "set" method. self.assertRaises(AttributeError, setattr, self.a, 'full_name', 'Paul McCartney') # But "full_name_2" has, and it can be used to initialise the class. # But "full_name_2" has, and it can be used to initialize the class. a2 = Person(full_name_2='Paul McCartney') a2.save() self.assertEqual(a2.first_name, 'Paul') Loading
django/db/models/query.py +1 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ class QuerySet(object): skip = None if load_fields and not fill_cache: # Some fields have been deferred, so we have to initialise # Some fields have been deferred, so we have to initialize # via keyword arguments. skip = set() init_list = [] Loading
django/http/response.py +1 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ class HttpResponseBase(six.Iterator): def __getstate__(self): # SimpleCookie is not pickeable with pickle.HIGHEST_PROTOCOL, so we # serialise to a string instead # serialize to a string instead state = self.__dict__.copy() state['cookies'] = str(state['cookies']) return state Loading
django/utils/functional.py +1 −1 Original line number Diff line number Diff line Loading @@ -260,7 +260,7 @@ class LazyObject(object): def _setup(self): """ Must be implemented by subclasses to initialise the wrapped object. Must be implemented by subclasses to initialize the wrapped object. """ raise NotImplementedError('subclasses of LazyObject must provide a _setup() method') Loading
tests/properties/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class PropertyTests(TestCase): # The "full_name" property hasn't provided a "set" method. self.assertRaises(AttributeError, setattr, self.a, 'full_name', 'Paul McCartney') # But "full_name_2" has, and it can be used to initialise the class. # But "full_name_2" has, and it can be used to initialize the class. a2 = Person(full_name_2='Paul McCartney') a2.save() self.assertEqual(a2.first_name, 'Paul')