Skip to content

Commit 35c69af

Browse files
authored
Fix spelling errors & flake8 warnings (#595)
1 parent 948f546 commit 35c69af

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

coderedcms/models/page_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,8 +1412,8 @@ def process_data(self, form, request):
14121412
# Handle file uploads
14131413
for key, val in form.cleaned_data.items():
14141414
if (
1415-
type(val) == InMemoryUploadedFile
1416-
or type(val) == TemporaryUploadedFile
1415+
type(val) is InMemoryUploadedFile
1416+
or type(val) is TemporaryUploadedFile
14171417
):
14181418
# Save the file and get its URL
14191419

coderedcms/models/snippet_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Snippets are for content that is re-usable in nature.
2+
Snippets are for content that is reusable in nature.
33
"""
44

55
from django.db import models
@@ -387,7 +387,7 @@ def __str__(self):
387387
@register_snippet
388388
class ReusableContent(models.Model):
389389
"""
390-
Snippet for resusable content in streamfields.
390+
Snippet for reusable content in streamfields.
391391
"""
392392

393393
class Meta:

docs/features/blocks/layoutblocks/column.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Fields and purposes:
1717
* **Advanced Settings** - Add custom CSS classes and IDs, select the breakpoint, and more
1818

1919
Column Size can be set automatically by how many columns you have and the size of the content; however,
20-
you may want to choose which size to make your columns depending on your layout design.
20+
you may want to choose which size to make your columns depending on your layout design.
2121

22-
Learn more about `Boostrap column sizing <https://getbootstrap.com/docs/4.0/layout/grid/>`_
23-
and `Boostrap breakpoints <https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints>`_.
22+
Learn more about `Bootstrap column sizing <https://getbootstrap.com/docs/4.0/layout/grid/>`_
23+
and `Bootstrap breakpoints <https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints>`_.
2424

25-
SEE ALSO: :ref:`content-blocks`
25+
SEE ALSO: :ref:`content-blocks`

docs/features/snippets/reusable_content.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ A representation of content that you would like to repeat often on your pages.
88
Usage
99
-----
1010

11-
You define your content walls in the Snippets > Resusable Content section of the admin. Once defined, any page with a body streamfield can show the reusable content by selecting it with a reusuable content block.
11+
You define your content walls in the Snippets > Reusable Content section of the admin. Once defined, any page with a body streamfield can show the reusable content by selecting it with a reusuable content block.
1212

1313
Fields
1414
------
1515

1616
**Name**: A unique name for your footer. It can be anything, it is just used as a personal reference to easily tell them apart.
17-
**Content**: A streamfield that contains the layout blocks for the resusable content.
17+
**Content**: A streamfield that contains the layout blocks for the reusable content.

docs/releases/v0.14.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ New features
1212
classifiers and orderable terms within each classifier. Then assign classifier terms
1313
to pages to enable filtering by specific classifier terms.
1414
* The current page in a navbar or dropdown is highlighted using the ``active`` CSS class.
15-
* The default streamfield on pages, resusable content snippets, footers, carousels, and modals
15+
* The default streamfield on pages, reusable content snippets, footers, carousels, and modals
1616
now includes more blocks including the "Latest pages" and "Page preview" blocks.
1717

1818

docs/releases/v0.18.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ v0.18.2 release notes
55
Bug fixes
66
---------
77

8-
* Fix re-usable content snippet template bug introduced in 0.18.1.
8+
* Fix reusable content snippet template bug introduced in 0.18.1.
99
* Pin version of ``django-taggit`` to fix breakage in new version.

docs/releases/v1.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Updating Python code & Django templates
5151

5252
#. Follow the `Wagtail 3 upgrade instructions
5353
<https://docs.wagtail.org/en/stable/releases/3.0.html#upgrade-considerations-changes-affecting-all-projects>`_.
54-
This primarily involes running the following tool to update the Wagtail
54+
This primarily involves running the following tool to update the Wagtail
5555
imports:
5656

5757
.. code-block:: text

0 commit comments

Comments
 (0)