From 66a0ebfe99d5bbbe1d7bf7e5981d6d2404492cd9 Mon Sep 17 00:00:00 2001 From: crccheck Date: Tue, 19 Nov 2013 18:44:28 -0600 Subject: [PATCH] fix random typos found while reading the project --- README | 6 +++--- README.md | 6 +++--- django_select2/__init__.py | 4 ++-- django_select2/util.py | 6 +++--- django_select2/widgets.py | 2 +- docs/get_started.rst | 14 +++++++------- testapp/testapp/settings.py | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README b/README index 419c5db..c519873 100644 --- a/README +++ b/README @@ -17,9 +17,9 @@ Installation 3. When deploying on production server, run :- python manage.py collectstatic - + 4. Add `django_select` to your urlconf if you use any 'Auto' fields. - + url(r'^select2/', include('django_select2.urls')), @@ -71,7 +71,7 @@ Changelog Summary * Updated Select2 to version 3.4.1. **Please note**, that if you need any of the Select2 locale files, then you need to download them yourself from http://ivaynberg.github.com/select2/ and add to your project. * Address isssue[#36](https://github.com/applegrew/django-select2/issues/36) - Fix importerror under django1.6. -* Fuxed the way `setup.py` handles unicode files while minfying them during package build. +* Fixed the way `setup.py` handles unicode files while minfying them during package build. * Address isssue[#39](https://github.com/applegrew/django-select2/issues/39) - MultipleSelect2HiddenInput.render() should use mark_safe(). * Address isssue[#45](https://github.com/applegrew/django-select2/issues/45) - MultipleSelect2HiddenInput returns bad has_changed value. diff --git a/README.md b/README.md index 419c5db..c519873 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Installation 3. When deploying on production server, run :- python manage.py collectstatic - + 4. Add `django_select` to your urlconf if you use any 'Auto' fields. - + url(r'^select2/', include('django_select2.urls')), @@ -71,7 +71,7 @@ Changelog Summary * Updated Select2 to version 3.4.1. **Please note**, that if you need any of the Select2 locale files, then you need to download them yourself from http://ivaynberg.github.com/select2/ and add to your project. * Address isssue[#36](https://github.com/applegrew/django-select2/issues/36) - Fix importerror under django1.6. -* Fuxed the way `setup.py` handles unicode files while minfying them during package build. +* Fixed the way `setup.py` handles unicode files while minfying them during package build. * Address isssue[#39](https://github.com/applegrew/django-select2/issues/39) - MultipleSelect2HiddenInput.render() should use mark_safe(). * Address isssue[#45](https://github.com/applegrew/django-select2/issues/45) - MultipleSelect2HiddenInput returns bad has_changed value. diff --git a/django_select2/__init__.py b/django_select2/__init__.py index 333c3a6..609f17c 100644 --- a/django_select2/__init__.py +++ b/django_select2/__init__.py @@ -23,13 +23,13 @@ Widgets are generally of two types :- 2. **Heavy** -- They are suited for scenarios when the number of options are large and need complex queries - (from maybe different sources) to get the options. This dynamic fetching of options undoubtably requires + (from maybe different sources) to get the options. This dynamic fetching of options undoubtedly requires Ajax communication with the server. Django-Select2 includes a helper JS file which is included automatically, so you need not worry about writing any Ajax related JS code. Although on the server side you do need to create a view specifically to respond to the queries. Heavies have further specialized versions called -- **Auto Heavy**. These do not require views to server Ajax - request. When they are instantiated, they register themselves with one central view which handels Ajax requests + request. When they are instantiated, they register themselves with one central view which handles Ajax requests for them. Heavy widgets have the word 'Heavy' in their name. Light widgets are normally named, i.e. there is no 'Light' word diff --git a/django_select2/util.py b/django_select2/util.py index 1c4cd68..5523c54 100644 --- a/django_select2/util.py +++ b/django_select2/util.py @@ -24,8 +24,8 @@ class JSFunction(JSVar): """ A JS function name. - From rendering point of view, rendering this is no different from :py:class:`JSVar`. After all, a JS varible - can refer a function instance, primitive constant or any other object. They are still all varibles. + From rendering point of view, rendering this is no different from :py:class:`JSVar`. After all, a JS variable + can refer a function instance, primitive constant or any other object. They are still all variables. .. tip:: Do use this marker for JS functions. This will make the code clearer, and the purpose more easier to understand. @@ -41,7 +41,7 @@ class JSFunctionInContext(JSVar): needs to be invoked in the context of a Html DOM, such that, ``this`` inside the function refers to that DOM instead of ``window``. - .. tip:: JS functions of this type are warapped inside special another JS function -- ``django_select2.runInContextHelper``. + .. tip:: JS functions of this type are wrapped inside special another JS function -- ``django_select2.runInContextHelper``. """ pass diff --git a/django_select2/widgets.py b/django_select2/widgets.py index 243c18e..ae8cbfb 100644 --- a/django_select2/widgets.py +++ b/django_select2/widgets.py @@ -71,7 +71,7 @@ class Select2Mixin(object): This mixin is responsible for rendering the necessary Javascript and CSS codes which turns normal ``