diff --git a/ivatar/ivataraccount/models.py b/ivatar/ivataraccount/models.py index 3fcf3c8..7526021 100644 --- a/ivatar/ivataraccount/models.py +++ b/ivatar/ivataraccount/models.py @@ -201,7 +201,7 @@ class Photo(BaseAccountModel): addr.save() if email: - # Explicitely asked + # Explicitly asked email.photo = self email.save() diff --git a/ivatar/ivataraccount/test_views.py b/ivatar/ivataraccount/test_views.py index 77f3f6e..c38277a 100644 --- a/ivatar/ivataraccount/test_views.py +++ b/ivatar/ivataraccount/test_views.py @@ -37,7 +37,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods username = random_string() password = random_string() email = '%s@%s.%s' % (username, random_string(), random_string(2)) - # Dunno why random tld doens't work, but I'm too lazy now to investigate + # Dunno why random tld doesn't work, but I'm too lazy now to investigate openid = 'http://%s.%s.%s/' % (username, random_string(), 'org') def login(self): @@ -375,7 +375,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods self.assertEqual( response.status_code, 200, - 'deleting photo doesnt work?') + 'deleting photo does not work?') self.assertEqual( str(list(response.context[0]['messages'])[0]), 'Photo deleted successfully', diff --git a/ivatar/ivataraccount/views.py b/ivatar/ivataraccount/views.py index 30cc792..932c7d4 100644 --- a/ivatar/ivataraccount/views.py +++ b/ivatar/ivataraccount/views.py @@ -318,7 +318,7 @@ class ImportPhotoView(SuccessMessageMixin, TemplateView): ) try: if libravatar_service_url: - # if it doesn't work, it will be catched by except + # if it doesn't work, it will be caught by except urlopen(libravatar_service_url) context['photos'].append({ 'service_url': libravatar_service_url,