Browse Source

Fix spelling errors & flake8 warnings (#595)

Vince Salvino 1 year ago
parent
commit
35c69af78a

+ 2 - 2
coderedcms/models/page_models.py

@@ -1412,8 +1412,8 @@ class CoderedFormMixin(models.Model):
         # Handle file uploads
         # Handle file uploads
         for key, val in form.cleaned_data.items():
         for key, val in form.cleaned_data.items():
             if (
             if (
-                type(val) == InMemoryUploadedFile
-                or type(val) == TemporaryUploadedFile
+                type(val) is InMemoryUploadedFile
+                or type(val) is TemporaryUploadedFile
             ):
             ):
                 # Save the file and get its URL
                 # Save the file and get its URL
 
 

+ 2 - 2
coderedcms/models/snippet_models.py

@@ -1,5 +1,5 @@
 """
 """
-Snippets are for content that is re-usable in nature.
+Snippets are for content that is reusable in nature.
 """
 """
 
 
 from django.db import models
 from django.db import models
@@ -387,7 +387,7 @@ class Footer(models.Model):
 @register_snippet
 @register_snippet
 class ReusableContent(models.Model):
 class ReusableContent(models.Model):
     """
     """
-    Snippet for resusable content in streamfields.
+    Snippet for reusable content in streamfields.
     """
     """
 
 
     class Meta:
     class Meta:

+ 4 - 4
docs/features/blocks/layoutblocks/column.rst

@@ -17,9 +17,9 @@ Fields and purposes:
 * **Advanced Settings** - Add custom CSS classes and IDs, select the breakpoint, and more
 * **Advanced Settings** - Add custom CSS classes and IDs, select the breakpoint, and more
 
 
 Column Size can be set automatically by how many columns you have and the size of the content; however,
 Column Size can be set automatically by how many columns you have and the size of the content; however,
-you may want to choose which size to make your columns depending on your layout design. 
+you may want to choose which size to make your columns depending on your layout design.
 
 
-Learn more about `Boostrap column sizing <https://getbootstrap.com/docs/4.0/layout/grid/>`_ 
-and `Boostrap breakpoints <https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints>`_.
+Learn more about `Bootstrap column sizing <https://getbootstrap.com/docs/4.0/layout/grid/>`_
+and `Bootstrap breakpoints <https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints>`_.
 
 
-SEE ALSO: :ref:`content-blocks`
+SEE ALSO: :ref:`content-blocks`

+ 2 - 2
docs/features/snippets/reusable_content.rst

@@ -8,10 +8,10 @@ A representation of content that you would like to repeat often on your pages.
 Usage
 Usage
 -----
 -----
 
 
-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.
+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.
 
 
 Fields
 Fields
 ------
 ------
 
 
 **Name**: A unique name for your footer.  It can be anything, it is just used as a personal reference to easily tell them apart.
 **Name**: A unique name for your footer.  It can be anything, it is just used as a personal reference to easily tell them apart.
-**Content**: A streamfield that contains the layout blocks for the resusable content.
+**Content**: A streamfield that contains the layout blocks for the reusable content.

+ 1 - 1
docs/releases/v0.14.0.rst

@@ -12,7 +12,7 @@ New features
   classifiers and orderable terms within each classifier. Then assign classifier terms
   classifiers and orderable terms within each classifier. Then assign classifier terms
   to pages to enable filtering by specific classifier terms.
   to pages to enable filtering by specific classifier terms.
 * The current page in a navbar or dropdown is highlighted using the ``active`` CSS class.
 * The current page in a navbar or dropdown is highlighted using the ``active`` CSS class.
-* The default streamfield on pages, resusable content snippets, footers, carousels, and modals
+* The default streamfield on pages, reusable content snippets, footers, carousels, and modals
   now includes more blocks including the "Latest pages" and "Page preview" blocks.
   now includes more blocks including the "Latest pages" and "Page preview" blocks.
 
 
 
 

+ 1 - 1
docs/releases/v0.18.2.rst

@@ -5,5 +5,5 @@ v0.18.2 release notes
 Bug fixes
 Bug fixes
 ---------
 ---------
 
 
-* Fix re-usable content snippet template bug introduced in 0.18.1.
+* Fix reusable content snippet template bug introduced in 0.18.1.
 * Pin version of ``django-taggit`` to fix breakage in new version.
 * Pin version of ``django-taggit`` to fix breakage in new version.

+ 1 - 1
docs/releases/v1.0.0.rst

@@ -51,7 +51,7 @@ Updating Python code & Django templates
 
 
 #. Follow the `Wagtail 3 upgrade instructions
 #. Follow the `Wagtail 3 upgrade instructions
    <https://docs.wagtail.org/en/stable/releases/3.0.html#upgrade-considerations-changes-affecting-all-projects>`_.
    <https://docs.wagtail.org/en/stable/releases/3.0.html#upgrade-considerations-changes-affecting-all-projects>`_.
-   This primarily involes running the following tool to update the Wagtail
+   This primarily involves running the following tool to update the Wagtail
    imports:
    imports:
 
 
    .. code-block:: text
    .. code-block:: text