A Django content management system focused on flexibility and user experience
5082 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/tasks.py | 11 | def update_reference_index_task(app_label, model_name, pk): |
| LOW | wagtail/tasks.py | 37 | def delete_file_from_storage_task(deconstructed_storage, path): |
| LOW | wagtail/fields.py | 299 | def get_block_by_content_path(self, value, path_elements): |
| LOW | wagtail/query.py | 613 | def annotate_approved_schedule(self): |
| LOW | wagtail/query.py | 643 | def annotate_has_untranslated_locale(self): |
| LOW | wagtail/coreutils.py | 285 | def get_supported_content_language_variant(lang_code, strict=False): |
| LOW | wagtail/coreutils.py | 320 | def get_locales_display_names() -> dict: |
| LOW | wagtail/coreutils.py | 554 | def make_wagtail_template_fragment_key(fragment_name, page, site, vary_on=None): |
| LOW | wagtail/wagtail_hooks.py | 100 | def register_workflow_permissions(): |
| LOW | wagtail/wagtail_hooks.py | 107 | def register_task_permissions(): |
| LOW | wagtail/wagtail_hooks.py | 115 | def describe_collection_children(collection): |
| LOW | wagtail/wagtail_hooks.py | 132 | def register_core_log_actions(actions): |
| LOW | wagtail/wagtail_hooks.py | 377 | def _field_label_from_content_path(model, content_path): |
| LOW | wagtail/wagtail_hooks.py | 504 | def register_workflow_log_actions(actions): |
| LOW | wagtail/log_actions.py | 148 | def get_log_model_for_instance(self, instance): |
| LOW | wagtail/signal_handlers.py | 23 | def post_save_site_signal_handler(instance, update_fields=None, **kwargs): |
| LOW | wagtail/signal_handlers.py | 27 | def post_delete_site_signal_handler(instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 31 | def pre_delete_page_unpublish(sender, instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 38 | def post_delete_page_log_deletion(sender, instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 42 | def reset_locales_display_names_cache(sender, instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 50 | def disable_reference_index_auto_update(): |
| LOW | wagtail/signal_handlers.py | 66 | def update_reference_index_on_save(instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 79 | def remove_reference_index_on_delete(instance, **kwargs): |
| LOW | wagtail/signal_handlers.py | 88 | def connect_reference_index_signal_handlers_for_model(model): |
| LOW | wagtail/signal_handlers.py | 93 | def connect_reference_index_signal_handlers(**kwargs): |
| LOW | wagtail/signal_handlers.py | 98 | def disconnect_reference_index_signal_handlers_for_model(model): |
| LOW | wagtail/signal_handlers.py | 103 | def disconnect_reference_index_signal_handlers(**kwargs): |
| LOW | wagtail/views.py | 35 | def authenticate_with_password(request, page_view_restriction_id, page_id): |
| LOW | wagtail/blocks/list_block.py | 200 | def defer_required_validation(self): |
| LOW | wagtail/blocks/list_block.py | 251 | def restore_deferred_validation(self): |
| LOW | wagtail/blocks/list_block.py | 411 | def get_block_by_content_path(self, value, path_elements): |
| LOW | wagtail/blocks/struct_block.py | 151 | def unique_children_and_settings(self): |
| LOW | wagtail/blocks/struct_block.py | 305 | def defer_required_validation(self): |
| LOW | wagtail/blocks/struct_block.py | 324 | def restore_deferred_validation(self): |
| LOW | wagtail/blocks/struct_block.py | 441 | def get_block_by_content_path(self, value, path_elements): |
| LOW | wagtail/blocks/stream_block.py | 164 | def defer_required_validation(self): |
| LOW | wagtail/blocks/stream_block.py | 241 | def restore_deferred_validation(self): |
| LOW | wagtail/blocks/stream_block.py | 427 | def get_block_by_content_path(self, value, path_elements): |
| LOW | wagtail/blocks/stream_block.py | 818 | def _deserialize_pickle_value(app_label, model_name, field_name, field_value): |
| LOW | wagtail/blocks/base.py | 175 | def defer_required_validation(self): |
| LOW | wagtail/blocks/base.py | 199 | def restore_deferred_validation(self): |
| LOW | wagtail/blocks/base.py | 435 | def get_block_by_content_path(self, value, path_elements): |
| LOW | wagtail/blocks/field_block.py | 65 | def defer_required_validation(self): |
| LOW | wagtail/blocks/field_block.py | 76 | def restore_deferred_validation(self): |
| LOW | wagtail/templatetags/wagtailcore_tags.py | 87 | def wagtail_documentation_path(): |
| LOW | wagtail/templatetags/wagtailcore_tags.py | 96 | def wagtail_release_notes_path(): |
| LOW | wagtail/templatetags/wagtailcore_tags.py | 101 | def wagtail_feature_release_whats_new_link(): |
| LOW | wagtail/templatetags/wagtailcore_tags.py | 109 | def wagtail_feature_release_editor_guide_link(): |
| LOW | wagtail/snippets/models.py | 38 | def get_workflow_enabled_models(): |
| LOW | wagtail/snippets/models.py | 84 | def _register_snippet_immediately(registerable, viewset=None): |
| LOW | wagtail/snippets/models.py | 113 | def register_deferred_snippets(): |
| LOW | wagtail/snippets/wagtail_hooks.py | 36 | def register_snippets_menu_item(): |
| LOW | wagtail/snippets/action_menu.py | 242 | def get_base_snippet_action_menu_items(model): |
| LOW | wagtail/snippets/permissions.py | 13 | def user_can_edit_snippet_type(user, model): |
| LOW | wagtail/snippets/tests/test_unpublish_view.py | 36 | def test_unpublish_view_invalid_pk(self): |
| LOW | wagtail/snippets/tests/test_unpublish_view.py | 51 | def test_unpublish_view_get_bad_permissions(self): |
| LOW | wagtail/snippets/tests/test_unpublish_view.py | 70 | def test_unpublish_view_post_bad_permissions(self): |
| LOW | wagtail/snippets/tests/test_unpublish_view.py | 104 | def test_unpublish_view_post_with_publish_permission(self): |
| LOW | wagtail/snippets/tests/test_unpublish_view.py | 195 | def test_after_unpublish_hook(self): |
| LOW | wagtail/snippets/tests/test_chooser_block.py | 34 | def test_reference_model_by_string(self): |
| 4191 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | wagtail/fields.py | 275 | # This method is used for serialization using django.core.serializers, |
| MEDIUM | wagtail/snippets/tests/test_history_view.py | 173 | # Create a new revision with a new isolated context |
| MEDIUM | wagtail/snippets/tests/test_history_view.py | 179 | # Create a new log context for each iteration to simulate multiple |
| MEDIUM | wagtail/snippets/tests/test_usage.py | 108 | # Create a user with basic admin backend access |
| MEDIUM | wagtail/snippets/tests/test_usage.py | 133 | # Create a user with edit access to snippets but not pages |
| MEDIUM | wagtail/snippets/tests/test_permissions.py | 16 | # Create a user with add_advert permission but not change_advert |
| MEDIUM | wagtail/snippets/tests/test_permissions.py | 70 | # Create a user with change_advert permission but not add_advert |
| MEDIUM | wagtail/snippets/tests/test_permissions.py | 124 | # Create a user with delete_advert permission |
| MEDIUM | wagtail/permission_policies/pages.py | 178 | # This method is used all around the admin, |
| MEDIUM | wagtail/test/dummy_external_storage.py | 1 | # This file contains a file storage backend that imitates behaviours of |
| MEDIUM | wagtail/test/utils/wagtail_tests.py | 22 | # Create a user |
| MEDIUM | wagtail/test/utils/wagtail_factories/builder.py | 115 | # Create a new StreamBlockFactory subclass, with a declaration for each block the user |
| MEDIUM | wagtail/images/models.py | 455 | # Create a bounding box around all faces |
| MEDIUM | wagtail/images/models.py | 464 | # Create a bounding box around all features |
| MEDIUM | wagtail/images/tests/test_jinja2_svg.py | 17 | # Create a real test engine |
| MEDIUM | wagtail/images/tests/test_jinja2_svg.py | 22 | # Create a raster image |
| MEDIUM | wagtail/images/tests/test_jinja2_svg.py | 28 | # Create an SVG image |
| MEDIUM | wagtail/images/tests/utils.py | 76 | # Create an image with a missing file, by deserializing from a python object |
| MEDIUM | wagtail/images/tests/test_models.py | 73 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 212 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 319 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 390 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 476 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 573 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_models.py | 1285 | # Create an image with a big filename and focal point |
| MEDIUM | wagtail/images/tests/test_models.py | 1341 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_models.py | 1423 | # Create an image |
| MEDIUM | wagtail/images/tests/test_models.py | 1453 | # Create an image with a big filename and no extension |
| MEDIUM | wagtail/images/tests/test_models.py | 1470 | # Create an image with a big filename and extensions |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1407 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1768 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1801 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1830 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1932 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 1993 | # Create a user with change_image permission but not add_image |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2025 | # Create a user with add_image permission but not change_image |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2154 | # Create a new user in the Bakers group, and log in as them. |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2388 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2436 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2481 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 2946 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 3481 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 3762 | # Create an UploadedFile for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 3993 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 4192 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 4547 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 4618 | # Create an image to edit |
| MEDIUM | wagtail/images/tests/test_admin_views.py | 4624 | # Create a user with change_image permission but not add_image |
| MEDIUM | wagtail/images/tests/tests.py | 339 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/tests.py | 50 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_templatetags.py | 22 | # Create an image for running tests on |
| MEDIUM | wagtail/images/tests/test_templatetags.py | 138 | # Create an image for running tests on |
| MEDIUM | …tests/test_bulk_actions/test_bulk_add_to_collection.py | 110 | # Create a group with image permissions on the source collection only |
| MEDIUM | …management/commands/wagtail_update_image_renditions.py | 84 | # Create a new one |
| MEDIUM | wagtail/tests/test_page_queryset.py | 532 | # Create a translation of the homepage |
| MEDIUM | wagtail/tests/test_page_queryset.py | 558 | # Create a translation of the homepage |
| MEDIUM | wagtail/tests/test_page_queryset.py | 1025 | # Create a ContentType that doesn't correspond to a real model |
| MEDIUM | wagtail/tests/test_signals.py | 113 | # Create a subpage |
| MEDIUM | wagtail/tests/test_blocks.py | 2837 | # Create a deep copy of the parent's form layout to include the |
| MEDIUM | wagtail/tests/test_page_model.py | 3759 | # Create a page that does not have the default init |
| 120 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | wagtail/fields.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/blocks/list_block.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/blocks/struct_block.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/blocks/stream_block.py | 8 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/test/testapp/models.py | 12 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/test/demosite/models.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/images/fields.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/images/blocks.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/tests/test_sites.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/tests/test_blocks.py | 11 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/tests/test_audit_log.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/tests/test_date_validators.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/tests/test_workflow.py | 8 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/admin/forms/tags.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/admin/forms/collections.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/admin/panels/title_field_panel.py | 59 | self.bound_field.field.widget.attrs.update(**self.get_attrs()) |
| CRITICAL | wagtail/admin/api/actions/delete.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/create_alias.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/convert_alias.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/copy.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/unpublish.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/move.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/revert_to_page_revision.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/copy_for_translation.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/api/actions/publish.py | 1 | from django.core.exceptions import ValidationError as DjangoValidationError |
| CRITICAL | wagtail/admin/views/editing_sessions.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/admin/views/reports/aging_pages.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/admin/telepath/widgets.py | 8 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/models/sites.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/models/audit_log.py | 13 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/contrib/forms/tests/test_models.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/contrib/typed_table_block/tests.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/contrib/typed_table_block/blocks.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/contrib/table_block/blocks.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/api/v2/filters.py | 2 | from django.core.exceptions import FieldError |
| CRITICAL | wagtail/documents/models.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/documents/fields.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/documents/tests/test_document_field.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/embeds/blocks.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | wagtail/embeds/tests/test_embeds.py | 10 | from django.core.exceptions import ValidationError |
| CRITICAL | docs/advanced_topics/streamfield_validation.md | 17 | from django.core.exceptions import ValidationError |
| CRITICAL | docs/advanced_topics/streamfield_validation.md | 50 | from django.core.exceptions import ValidationError |
| CRITICAL | docs/advanced_topics/streamfield_validation.md | 69 | from django.core.exceptions import ValidationError |
| CRITICAL | docs/reference/contrib/typed_table_block.md | 82 | from django.core.exceptions import ValidationError |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | wagtail/fields.py | 0 | given a list of elements from a content path, retrieve the block at that path as a boundblock object, or none if the pat |
| HIGH | wagtail/blocks/list_block.py | 0 | given a list of elements from a content path, retrieve the block at that path as a boundblock object, or none if the pat |
| HIGH | wagtail/blocks/struct_block.py | 0 | given a list of elements from a content path, retrieve the block at that path as a boundblock object, or none if the pat |
| HIGH | wagtail/blocks/stream_block.py | 0 | given a list of elements from a content path, retrieve the block at that path as a boundblock object, or none if the pat |
| HIGH | wagtail/blocks/base.py | 0 | given a list of elements from a content path, retrieve the block at that path as a boundblock object, or none if the pat |
| HIGH | wagtail/snippets/tests/test_unpublish_view.py | 0 | this tests that the unpublish view responds with an unpublish confirm page |
| HIGH | wagtail/admin/tests/pages/test_unpublish_page.py | 0 | this tests that the unpublish view responds with an unpublish confirm page |
| HIGH | …n/tests/pages/test_bulk_actions/test_bulk_unpublish.py | 0 | this tests that the unpublish view responds with an unpublish confirm page |
| HIGH | wagtail/snippets/tests/test_unpublish_view.py | 0 | this tests that the unpublish view doesn't allow users without unpublish permissions |
| HIGH | wagtail/snippets/tests/test_unpublish_view.py | 0 | this tests that the unpublish view doesn't allow users without unpublish permissions |
| HIGH | wagtail/admin/tests/pages/test_unpublish_page.py | 0 | this tests that the unpublish view doesn't allow users without unpublish permissions |
| HIGH | …n/tests/pages/test_bulk_actions/test_bulk_unpublish.py | 0 | this tests that the unpublish view doesn't allow users without unpublish permissions |
| HIGH | wagtail/snippets/tests/test_create_view.py | 0 | template[data-controller="w-teleport"][data-w-teleport-target-value="[data-edit-form]"] #schedule-publishing-dialog |
| HIGH | wagtail/snippets/tests/test_edit_view.py | 0 | template[data-controller="w-teleport"][data-w-teleport-target-value="[data-edit-form]"] #schedule-publishing-dialog |
| HIGH | wagtail/admin/tests/pages/test_edit_page.py | 0 | template[data-controller="w-teleport"][data-w-teleport-target-value="[data-edit-form]"] #schedule-publishing-dialog |
| HIGH | wagtail/snippets/tests/test_create_view.py | 0 | if a form is reshown due to a validation error elsewhere, fields whose validation was deferred should still show the req |
| HIGH | wagtail/snippets/tests/test_edit_view.py | 0 | if a form is reshown due to a validation error elsewhere, fields whose validation was deferred should still show the req |
| HIGH | wagtail/admin/tests/pages/test_edit_page.py | 0 | if a form is reshown due to a validation error elsewhere, fields whose validation was deferred should still show the req |
| HIGH | wagtail/admin/tests/pages/test_create_page.py | 0 | if a form is reshown due to a validation error elsewhere, fields whose validation was deferred should still show the req |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform the given action on some or all instances of this model |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform the given action on some or all instances of this model |
| HIGH | wagtail/permission_policies/base.py | 0 | return whether the given user has permission to perform the given action on some or all instances of this model |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform any of the given actions on some or all instances of this model |
| HIGH | wagtail/permission_policies/sites.py | 0 | return whether the given user has permission to perform any of the given actions on some or all instances of this model |
| HIGH | wagtail/permission_policies/base.py | 0 | return whether the given user has permission to perform any of the given actions on some or all instances of this model |
| HIGH | wagtail/permission_policies/collections.py | 0 | return a queryset of users who have permission to perform any of the given actions on some or all instances of this mode |
| HIGH | wagtail/permission_policies/collections.py | 0 | return a queryset of users who have permission to perform any of the given actions on some or all instances of this mode |
| HIGH | wagtail/permission_policies/sites.py | 0 | return a queryset of users who have permission to perform any of the given actions on some or all instances of this mode |
| HIGH | wagtail/permission_policies/base.py | 0 | return a queryset of users who have permission to perform any of the given actions on some or all instances of this mode |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform the given action on the given model instance |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform the given action on the given model instance |
| HIGH | wagtail/permission_policies/base.py | 0 | return whether the given user has permission to perform the given action on the given model instance |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/permission_policies/collections.py | 0 | return whether the given user has permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/permission_policies/base.py | 0 | return whether the given user has permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/permission_policies/collections.py | 0 | return a queryset of all instances of this model for which the given user has permission to perform any of the given act |
| HIGH | wagtail/permission_policies/sites.py | 0 | return a queryset of all instances of this model for which the given user has permission to perform any of the given act |
| HIGH | wagtail/permission_policies/base.py | 0 | return a queryset of all instances of this model for which the given user has permission to perform any of the given act |
| HIGH | wagtail/permission_policies/collections.py | 0 | return a queryset of all users who have permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/permission_policies/collections.py | 0 | return a queryset of all users who have permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/permission_policies/base.py | 0 | return a queryset of all users who have permission to perform any of the given actions on the given model instance |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | this tests that the add view responds correctly on a get request |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | this tests that the add view responds correctly on a get request |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | this tests that the add view responds correctly on a get request |
| HIGH | wagtail/documents/tests/test_admin_views.py | 0 | this tests that the add view responds correctly on a get request |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | the add view must check that the uploaded file is a valid image |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | the add view must check that the uploaded file is a valid image |
| HIGH | wagtail/images/tests/test_admin_views.py | 0 | the add view must check that the uploaded file is a valid image |
| HIGH | wagtail/images/tests/test_templatetags.py | 0 | <picture> <source srcset="{filename_webp}" type="image/webp"> <img src="{filename_jpeg}" alt="test image" width="640" he |
| HIGH | wagtail/images/tests/test_templatetags.py | 0 | <picture> <source srcset="{filename_webp}" type="image/webp"> <img src="{filename_jpeg}" alt="test image" width="640" he |
| HIGH | wagtail/images/tests/test_jinja2.py | 0 | <picture> <source srcset="{filename_webp}" type="image/webp"> <img src="{filename_jpeg}" alt="test image" width="640" he |
| HIGH | wagtail/images/tests/test_jinja2.py | 0 | <picture> <source srcset="{filename_webp}" type="image/webp"> <img src="{filename_jpeg}" alt="test image" width="640" he |
| HIGH | wagtail/tests/test_page_model.py | 0 | test that view restrictions on a page's ancestor are not copied along with the page |
| HIGH | wagtail/tests/test_page_model.py | 0 | test that view restrictions on a page's ancestor are not copied along with the page |
| HIGH | wagtail/tests/test_page_model.py | 0 | test that view restrictions on a page's ancestor are not copied along with the page |
| HIGH | wagtail/tests/test_page_model.py | 0 | test that view restrictions on a page's ancestor are not copied along with the page |
| HIGH | wagtail/tests/tests.py | 0 | {% load wagtailcore_tags %}<a href="{% pageurl page %}">{{ page.title }}</a> |
| HIGH | wagtail/tests/tests.py | 0 | {% load wagtailcore_tags %}<a href="{% pageurl page %}">{{ page.title }}</a> |
| HIGH | wagtail/tests/tests.py | 0 | {% load wagtailcore_tags %}<a href="{% pageurl page %}">{{ page.title }}</a> |
| HIGH | wagtail/tests/tests.py | 0 | {% load wagtailcore_tags %}<a href="{% pageurl page %}">{{ page.title }}</a> |
| 25 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | wagtail/tasks.py | 28 | # parent is null, so there is no valid object to record references against |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 577 | # in order for user_has_any_permission to return true |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 591 | # should return false |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 703 | # in order for user_has_any_permission to return true |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 716 | # should return false |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 967 | # in order for user_has_any_permission to return true |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 978 | # should return false |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 1176 | # in order for user_has_any_permission to return true |
| HIGH | …/tests/permission_policies/test_permission_policies.py | 1189 | # should return false |
| HIGH | wagtail/admin/wagtail_hooks.py | 722 | # Keep pasted links with http/https protocol, and not-pasted links (href = undefined). |
| HIGH | wagtail/admin/userbar.py | 215 | # The runOnly has to be omitted (instead of set to an empty list or null) |
| HIGH | wagtail/admin/panels/field_panel.py | 64 | # - it corresponds to a non-null, non-text-typed model field (in which case a blank value |
| HIGH | wagtail/admin/tests/test_edit_handlers.py | 1221 | expected_js = 'new PageChooser("{id}", {{"modelNames": ["{model}"], "canChooseRoot": false, "userPerms": null, " |
| HIGH | wagtail/admin/tests/test_edit_handlers.py | 1243 | expected_js = 'new PageChooser("{id}", {{"modelNames": ["{model}"], "canChooseRoot": true, "userPerms": null, "m |
| HIGH | wagtail/admin/tests/test_edit_handlers.py | 1299 | expected_js = 'new PageChooser("{id}", {{"modelNames": ["{model}"], "canChooseRoot": false, "userPerms": null, " |
| HIGH | wagtail/admin/tests/test_edit_handlers.py | 1319 | expected_js = 'new PageChooser("{id}", {{"modelNames": ["{model}"], "canChooseRoot": false, "userPerms": null, " |
| HIGH | wagtail/admin/tests/test_widgets.py | 108 | 'new PageChooser("test-id", {"modelNames": ["wagtailcore.page"], "canChooseRoot": false, "userPerms": null, |
| HIGH | wagtail/admin/tests/test_widgets.py | 118 | 'new PageChooser("test-id", {"modelNames": ["tests.simplepage"], "canChooseRoot": false, "userPerms": null, |
| HIGH | wagtail/admin/tests/test_widgets.py | 130 | 'new PageChooser("test-id", {"modelNames": ["tests.simplepage"], "canChooseRoot": false, "userPerms": null, |
| HIGH | wagtail/admin/tests/test_widgets.py | 142 | 'new PageChooser("test-id", {"modelNames": ["tests.simplepage"], "canChooseRoot": false, "userPerms": null, |
| HIGH | wagtail/admin/tests/test_widgets.py | 155 | 'new PageChooser("test-id", {"modelNames": ["tests.simplepage", "tests.eventpage"], "canChooseRoot": false, |
| HIGH | wagtail/admin/tests/test_widgets.py | 167 | 'new PageChooser("test-id", {"modelNames": ["wagtailcore.page"], "canChooseRoot": true, "userPerms": null, " |
| HIGH | wagtail/admin/tests/test_widgets.py | 82 | 'new PageChooser("test-id", {"modelNames": ["wagtailcore.page"], "canChooseRoot": false, "userPerms": null, |
| HIGH | …ail/admin/rich_text/converters/html_to_contentstate.py | 89 | state.push() |
| HIGH | wagtail/admin/views/generic/models.py | 109 | # is returned anyway (even if list_filter is undefined), so the locale |
| HIGH | wagtail/management/commands/convert_mariadb_uuids.py | 25 | old_field = models.CharField(null=null, max_length=36) |
| HIGH | wagtail/management/commands/convert_mariadb_uuids.py | 28 | new_field = models.UUIDField(null=null) |
| HIGH | wagtail/models/pages.py | 389 | # If non-null, this page is an alias of the linked page |
| HIGH | wagtail/models/pages.py | 1890 | # fall back on latest_revision_created_at if last_published_at is null |
| HIGH | wagtail/contrib/settings/models.py | 77 | If the field value is null, or links to something other |
| HIGH | wagtail/contrib/table_block/tests.py | 340 | expected_json = '{"first_row_is_table_header": false, "first_col_is_header": false, "data": [["Foo", 1, null], [ |
| HIGH | wagtail/contrib/sitemaps/sitemap_generator.py | 17 | # fall back on latest_revision_created_at if last_published_at is null |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/compat.py | 19 | |
| LOW | wagtail/coreutils.py | 29 | |
| LOW | wagtail/apps.py | 4 | |
| LOW | wagtail/wagtail_hooks.py | 22 | |
| LOW | wagtail/blocks/__init__.py | 2 | |
| LOW | wagtail/blocks/__init__.py | 3 | |
| LOW | wagtail/blocks/__init__.py | 4 | |
| LOW | wagtail/blocks/__init__.py | 5 | |
| LOW | wagtail/blocks/__init__.py | 6 | |
| LOW | wagtail/blocks/__init__.py | 7 | |
| LOW | wagtail/snippets/bulk_actions/__init__.py | 1 | |
| LOW | wagtail/locales/views.py | 18 | |
| LOW | wagtail/locales/views.py | 18 | |
| LOW | wagtail/permission_policies/__init__.py | 1 | |
| LOW | wagtail/test/settings_ui.py | 1 | |
| LOW | wagtail/test/customuser/models.py | 13 | |
| LOW | wagtail/test/customuser/models.py | 15 | |
| LOW | wagtail/test/utils/__init__.py | 1 | |
| LOW | wagtail/test/utils/__init__.py | 2 | |
| LOW | wagtail/test/utils/__init__.py | 3 | |
| LOW | wagtail/test/utils/wagtail_factories/__init__.py | 1 | |
| LOW | wagtail/test/utils/wagtail_factories/__init__.py | 2 | |
| LOW | wagtail/images/models.py | 1 | |
| LOW | wagtail/images/apps.py | 5 | |
| LOW | wagtail/images/tests/tests.py | 41 | |
| LOW | wagtail/images/views/bulk_actions/__init__.py | 1 | |
| LOW | wagtail/images/views/bulk_actions/__init__.py | 2 | |
| LOW | wagtail/images/views/bulk_actions/__init__.py | 3 | |
| LOW | wagtail/admin/models.py | 15 | |
| LOW | wagtail/admin/apps.py | 4 | |
| LOW | wagtail/admin/apps.py | 18 | |
| LOW | wagtail/admin/blocks.py | 3 | |
| LOW | wagtail/admin/ui/components.py | 2 | |
| LOW | wagtail/admin/ui/components.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 2 | |
| LOW | wagtail/admin/forms/__init__.py | 9 | |
| LOW | wagtail/admin/panels/__init__.py | 4 | |
| LOW | wagtail/admin/panels/__init__.py | 4 | |
| LOW | wagtail/admin/panels/__init__.py | 9 | |
| LOW | wagtail/admin/panels/__init__.py | 10 | |
| LOW | wagtail/admin/panels/__init__.py | 11 | |
| LOW | wagtail/admin/panels/__init__.py | 12 | |
| LOW | wagtail/admin/panels/__init__.py | 13 | |
| LOW | wagtail/admin/panels/__init__.py | 14 | |
| LOW | wagtail/admin/panels/__init__.py | 15 | |
| LOW | wagtail/admin/panels/__init__.py | 16 | |
| LOW | wagtail/admin/panels/__init__.py | 17 | |
| LOW | wagtail/admin/panels/__init__.py | 18 | |
| LOW | wagtail/admin/panels/__init__.py | 19 | |
| LOW | wagtail/admin/panels/__init__.py | 20 | |
| LOW | wagtail/admin/panels/__init__.py | 21 | |
| LOW | wagtail/admin/rich_text/__init__.py | 4 | |
| LOW | wagtail/admin/views/bulk_action/__init__.py | 1 | |
| LOW | wagtail/admin/views/bulk_action/__init__.py | 2 | |
| LOW | wagtail/admin/views/generic/__init__.py | 1 | |
| LOW | wagtail/admin/views/generic/__init__.py | 1 | |
| 187 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | runtests.py | 37 | |
| LOW | wagtail/fields.py | 143 | |
| LOW | wagtail/query.py | 656 | |
| LOW | wagtail/whitelist.py | 34 | |
| LOW | wagtail/whitelist.py | 46 | |
| LOW | wagtail/coreutils.py | 285 | |
| LOW | wagtail/coreutils.py | 347 | |
| LOW | wagtail/wagtail_hooks.py | 33 | |
| LOW | wagtail/wagtail_hooks.py | 34 | |
| LOW | wagtail/blocks/struct_block.py | 37 | |
| LOW | wagtail/blocks/stream_block.py | 36 | |
| LOW | wagtail/blocks/field_block.py | 604 | |
| LOW | wagtail/blocks/field_block.py | 658 | |
| LOW | wagtail/blocks/field_block.py | 717 | |
| LOW | wagtail/snippets/action_menu.py | 275 | |
| LOW | wagtail/snippets/views/snippets.py | 191 | |
| LOW | wagtail/permission_policies/collections.py | 292 | |
| LOW | wagtail/permission_policies/base.py | 386 | |
| LOW | wagtail/test/numberformat.py | 78 | |
| LOW | wagtail/test/utils/form_data.py | 147 | |
| LOW | wagtail/bin/wagtail.py | 203 | |
| LOW | wagtail/bin/wagtail.py | 331 | |
| LOW | wagtail/bin/wagtail.py | 354 | |
| LOW | wagtail/images/models.py | 650 | |
| LOW | wagtail/images/models.py | 1056 | |
| LOW | wagtail/images/templatetags/wagtailimages_tags.py | 15 | |
| LOW | …management/commands/wagtail_update_image_renditions.py | 40 | |
| LOW | wagtail/tests/test_page_queryset.py | 593 | |
| LOW | wagtail/tests/test_blocks.py | 70 | |
| LOW | wagtail/tests/test_hooks.py | 125 | |
| LOW | wagtail/tests/streamfield_migrations/test_migrations.py | 51 | |
| LOW | wagtail/admin/mail.py | 231 | |
| LOW | wagtail/admin/models.py | 30 | |
| LOW | wagtail/admin/checks.py | 105 | |
| LOW | wagtail/admin/localization.py | 121 | |
| LOW | wagtail/admin/wagtail_hooks.py | 308 | |
| LOW | wagtail/admin/action_menu.py | 274 | |
| LOW | wagtail/admin/messages.py | 38 | |
| LOW | wagtail/admin/userbar.py | 339 | |
| LOW | wagtail/admin/compare.py | 98 | |
| LOW | wagtail/admin/compare.py | 798 | |
| LOW | wagtail/admin/compare.py | 280 | |
| LOW | wagtail/admin/compare.py | 447 | |
| LOW | wagtail/admin/compare.py | 493 | |
| LOW | wagtail/admin/compare.py | 543 | |
| LOW | wagtail/admin/compare.py | 776 | |
| LOW | wagtail/admin/filters.py | 165 | |
| LOW | wagtail/admin/forms/models.py | 190 | |
| LOW | wagtail/admin/viewsets/model.py | 516 | |
| LOW | wagtail/admin/panels/model_utils.py | 56 | |
| LOW | wagtail/admin/panels/group.py | 27 | |
| LOW | wagtail/admin/tests/pages/test_page_search.py | 344 | |
| LOW | wagtail/admin/views/editing_sessions.py | 20 | |
| LOW | wagtail/admin/views/collection_privacy.py | 11 | |
| LOW | wagtail/admin/views/chooser.py | 604 | |
| LOW | wagtail/admin/views/page_privacy.py | 14 | |
| LOW | wagtail/admin/views/workflows.py | 867 | |
| LOW | wagtail/admin/views/account.py | 305 | |
| LOW | wagtail/admin/views/generic/mixins.py | 456 | |
| LOW | wagtail/admin/views/generic/models.py | 167 | |
| 50 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/blocks/definition_lookup.py | 72 | # Check if we've already seen this block definition |
| LOW | wagtail/snippets/tests/test_reordering.py | 243 | # Check if obj3 is now the first item by taking obj1's sort_order and |
| LOW | wagtail/snippets/tests/test_reordering.py | 253 | # Check if obj1 is now the second item by taking obj2's sort_order |
| LOW | wagtail/snippets/tests/test_reordering.py | 317 | # Check if obj1 is now the second item by taking obj2's sort_order |
| LOW | wagtail/images/models.py | 182 | # Open file if it is closed |
| LOW | wagtail/images/models.py | 753 | # Read file contents into memory |
| LOW | wagtail/images/models.py | 977 | # Check if segment has braces to expand |
| LOW | wagtail/images/forms.py | 26 | # Check if this is the file field |
| LOW | wagtail/images/tests/test_models.py | 890 | # Check if get_rendition returns the rendition from cache |
| LOW | wagtail/tests/test_reference_index.py | 942 | # Check if reference remains (pointing to dead target) |
| LOW | wagtail/tests/test_management_commands.py | 67 | # Check if its fixed |
| LOW | wagtail/tests/test_management_commands.py | 91 | # Check if its fixed |
| LOW | wagtail/admin/tests/test_account_management.py | 378 | # Check if the default title does not exist |
| LOW | wagtail/admin/tests/test_account_management.py | 308 | # Check if the default title exists |
| LOW | wagtail/admin/tests/viewsets/test_model_viewset.py | 2107 | # Check if obj3 is now the first item by taking obj1's sort_order and |
| LOW | wagtail/admin/tests/viewsets/test_model_viewset.py | 2116 | # Check if obj1 is now the second item by taking obj2's sort_order |
| LOW | wagtail/admin/tests/viewsets/test_model_viewset.py | 2168 | # Check if obj1 is now the second item by taking obj2's sort_order |
| LOW | wagtail/admin/tests/pages/test_copy_page.py | 1091 | # Check if slug is hello-world-2 |
| LOW | wagtail/admin/views/workflows.py | 491 | # Set workflow to active if inactive |
| LOW | wagtail/admin/views/workflows.py | 822 | # Set workflow to active if inactive |
| LOW | wagtail/admin/views/pages/copy.py | 35 | # Check if user is submitting |
| LOW | wagtail/models/pages.py | 786 | # Check if this is a root page of any sites and clear the 'wagtail_site_root_paths' key if so |
| LOW | wagtail/models/i18n.py | 345 | # Check if the object has any parental keys to another translatable model |
| LOW | wagtail/contrib/settings/models.py | 207 | # Check if we already have this in the cache and return it if so. |
| LOW | wagtail/contrib/frontend_cache/signal_handlers.py | 20 | # Loop through list and register signal handlers for each one |
| LOW | wagtail/contrib/simple_translation/models.py | 37 | # Check if the source tree needs to be synchronised into any other trees |
| LOW | …contrib/simple_translation/tests/test_wagtail_hooks.py | 239 | # Check if fr and de blog post parent ids are in the translated list |
| LOW | …contrib/simple_translation/tests/test_wagtail_hooks.py | 265 | # Check if the new pages exist under their respective translated homepages |
| LOW | …contrib/simple_translation/tests/test_wagtail_hooks.py | 324 | # Check if the fr and de pages exist under their original parent page (/blog/) |
| LOW | wagtail/api/v2/views.py | 542 | # Check if we have a specific site to look for |
| LOW | wagtail/documents/models.py | 94 | # Open file if it is closed |
| LOW | wagtail/embeds/finders/oembed.py | 69 | # Check if 'type' is missing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ruff.toml | 21 | # E: pycodestyle errors |
| LOW | wagtail/signals.py | 61 | |
| LOW | wagtail/fields.py | 221 | ): |
| LOW | wagtail/blocks/list_block.py | 21 | |
| LOW | wagtail/blocks/base.py | 601 | # surname = CharBlock() |
| LOW | wagtail/snippets/apps.py | 21 | # created manually. |
| LOW | wagtail/snippets/bulk_actions/delete.py | 21 | |
| LOW | wagtail/permission_policies/collections.py | 301 | # on any instance |
| LOW | wagtail/tests/test_blocks.py | 5661 | # This is a good thing for a standalone to_python call, because loading a model instance |
| LOW | wagtail/admin/templatetags/wagtailadmin_tags.py | 221 | request = context.get("request") |
| LOW | wagtail/admin/tests/test_audit_log.py | 221 | # 3 edits without UUID |
| LOW | wagtail/admin/tests/test_menu.py | 421 | # automatically generated from the label, which is translatable. |
| LOW | wagtail/admin/tests/test_editing_sessions.py | 1721 | |
| LOW | wagtail/admin/tests/pages/test_page_viewset.py | 81 | BaseParent, |
| LOW | wagtail/admin/views/editing_sessions.py | 161 | and not users_other_session["revision_id"] |
| LOW | wagtail/admin/views/generic/multiple_upload.py | 21 | |
| LOW | wagtail/models/pages.py | 361 | |
| LOW | wagtail/models/reference_index.py | 161 | # called 'my_struct_block' that has a field called 'my_field'. If we extracted a |
| LOW | wagtail/models/reference_index.py | 901 | # Ignore relations formed by any django-taggit 'through' model, as this causes any tag attached to |
| LOW | wagtail/rich_text/feature_registry.py | 21 | # of feature names to 'plugin' objects that define how to implement that feature |
| LOW | docs/conf.py | 1 | # |
| LOW | docs/conf.py | 141 | # There are two options for replacing |today|: either, you set today to some |
| LOW | docs/conf.py | 221 | } |
| LOW | docs/conf.py | 241 | # A shorter title for the navigation bar. Default is the same as html_title. |
| LOW | docs/conf.py | 261 | html_extra_path = ["public"] |
| LOW | docs/conf.py | 281 | # If false, no index is generated. |
| LOW | docs/conf.py | 301 | # base URL from which the finished HTML is served. |
| LOW | docs/conf.py | 341 | # For "manual" documents, if this is true, then toplevel headings are parts, |
| LOW | docs/advanced_topics/add_to_django_project.md | 321 | } |
| LOW | .github/workflows/test.yml | 21 | |
| LOW | client/scss/components/_preview-panel.scss | 41 | // Ensure that sites without a background show with a fallback, only when iframe has loaded |
| LOW | client/src/components/Sidebar/menu/SubMenuItem.tsx | 41 | // to finish before making it invisible |
| LOW | …/src/components/StreamField/blocks/StructBlock.test.js | 921 | // group(root): |
| LOW | …ypoints/contrib/typed_table_block/typed_table_block.js | 21 | // * id: the unique ID number assigned to this column, used in field name prefixes |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setup.py | 12 | print("Error compiling assets: " + str(e)) # noqa: T201 |
| LOW | wagtail/blocks/base.py | 718 | except Exception as e: # noqa: BLE001 |
| MEDIUM | wagtail/blocks/base.py | 710 | def |
| LOW | wagtail/test/dummy_external_storage.py | 88 | except Exception as e: # noqa: BLE001 |
| MEDIUM | wagtail/test/dummy_external_storage.py | 85 | def size(self): |
| LOW | wagtail/test/utils/page_tests.py | 260 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/test/utils/page_tests.py | 336 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/test/utils/page_tests.py | 367 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/test/utils/page_tests.py | 422 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/test/utils/page_tests.py | 438 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/test/utils/decorators.py | 22 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/images/models.py | 168 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/images/fields.py | 186 | except Exception as exc: # noqa: BLE001 |
| MEDIUM | wagtail/images/fields.py | 120 | def check_image_pixel_size(self, f): |
| LOW | wagtail/images/tests/test_management_commands.py | 41 | except Exception: # noqa: BLE001 |
| MEDIUM | wagtail/tests/test_utils.py | 180 | def test_pickleability(self): |
| LOW | wagtail/tests/test_utils.py | 183 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/tests/test_utils.py | 190 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/admin/mail.py | 126 | except Exception: |
| LOW | wagtail/admin/mail.py | 269 | except Exception: |
| LOW | …nagement/commands/create_log_entries_from_revisions.py | 48 | except Exception: # noqa: BLE001 |
| LOW | …nagement/commands/create_log_entries_from_revisions.py | 60 | except Exception: # noqa: BLE001 |
| LOW | …ail/contrib/settings/tests/site_specific/test_model.py | 83 | except Exception as e: # noqa: BLE001 |
| LOW | …ail/contrib/settings/tests/site_specific/test_model.py | 91 | except Exception as e: # noqa: BLE001 |
| LOW | wagtail/contrib/redirects/views.py | 270 | except Exception as e: # noqa: BLE001 ; pragma: no cover |
| LOW | wagtail/documents/models.py | 123 | except Exception: # noqa: BLE001 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/query.py | 524 | # Assuming the situation is the latter, just return the root node. |
| LOW | wagtail/blocks/base.py | 572 | # In the base implementation, no substitutions happen, so we ignore the lookup and just call |
| MEDIUM | wagtail/snippets/tests/test_locking.py | 492 | """A user needs to unlock a snippet that's locked by another user in order to edit it.""" |
| LOW | wagtail/snippets/views/snippets.py | 254 | # Hook response is not suitable for a JSON response, so ignore it and just use |
| LOW | wagtail/snippets/views/snippets.py | 322 | # Hook response is not suitable for a JSON response, so ignore it and just use |
| MEDIUM | wagtail/images/models.py | 745 | # utilize QuerySet.get_or_create(), which has better handling of |
| LOW | wagtail/images/forms.py | 37 | # For all other fields, just call its formfield() method. |
| MEDIUM | wagtail/admin/userbar.py | 105 | #: Should be used in conjunction with ``axe_custom_rules``. |
| LOW | wagtail/admin/templatetags/wagtailadmin_tags.py | 230 | # users having to log in again. So we just return the URL unchanged. |
| LOW | wagtail/admin/tests/pages/test_edit_page.py | 1515 | # Without TZ support, just use the submitted timestamp as-is |
| LOW | wagtail/admin/views/pages/create.py | 286 | # Hook response is not suitable for a JSON response, so ignore it and just use |
| LOW | wagtail/admin/views/pages/edit.py | 662 | # Hook response is not suitable for a JSON response, so ignore it and just use |
| LOW | wagtail/management/commands/fixtree.py | 74 | # Deleting only the *actual* orphans is a bit silly (since it'll just create |
| LOW | wagtail/models/pages.py | 1461 | # ``current_site`` is purposefully undocumented, as one can simply pass the request and get |
| MEDIUM | wagtail/users/tests/test_admin_views.py | 2095 | # Tests that use this method are testing the aforementioned |
| LOW | wagtail/documents/forms.py | 35 | # For all other fields, just call its formfield() method. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | wagtail/blocks/base.py | 33 | # ========================================= |
| MEDIUM | wagtail/blocks/base.py | 35 | # ========================================= |
| MEDIUM | wagtail/blocks/base.py | 699 | # ======================== |
| MEDIUM | wagtail/blocks/base.py | 701 | # ======================== |
| MEDIUM | wagtail/test/demosite/models.py | 19 | # ============================= |
| MEDIUM | wagtail/test/demosite/models.py | 146 | # ============================= |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/test/utils/form_data.py | 140 | 'body': rich_text('<p>Lorem ipsum dolor sit amet</p>'), |
| LOW | wagtail/test/utils/form_data.py | 140 | 'body': rich_text('<p>Lorem ipsum dolor sit amet</p>'), |
| LOW | wagtail/tests/test_form_data_utils.py | 16 | <input type="text" name="name" value="Jane Doe" placeholder=""> |
| LOW | wagtail/tests/test_form_data_utils.py | 134 | ("name", ["Jane Doe"]), |
| LOW | wagtail/tests/test_tests.py | 189 | {"title": "Simple Lorem Page", "content": "Lorem ipsum dolor sit amet"}, |
| LOW | wagtail/tests/test_tests.py | 189 | {"title": "Simple Lorem Page", "content": "Lorem ipsum dolor sit amet"}, |
| LOW | wagtail/admin/tests/tests.py | 468 | username="superuser", email="admin@example.com", password="p" |
| LOW | wagtail/admin/tests/tests.py | 474 | username="superuser", email="admin@example.com", password="p" |
| LOW | wagtail/contrib/frontend_cache/tests.py | 68 | "EMAIL": "test@test.com", |
| LOW | wagtail/contrib/frontend_cache/tests.py | 79 | self.assertEqual(backends["cloudflare"].cloudflare_email, "test@test.com") |
| LOW | wagtail/contrib/frontend_cache/tests.py | 423 | "EMAIL": "test@test.com", |
| LOW | wagtail/contrib/frontend_cache/tests.py | 441 | "EMAIL": "test@test.com", |
| LOW | wagtail/contrib/frontend_cache/tests.py | 828 | "EMAIL": "test@test.com", |
| LOW | wagtail/users/utils.py | 39 | gravatar_url = get_gravatar_url('user@example.com') |
| LOW | wagtail/users/utils.py | 43 | 'user@example.com', |
| LOW | wagtail/api/v2/tests/test_pages.py | 1929 | email="admin@example.com", |
| LOW | docs/advanced_topics/testing.md | 161 | ('text', 'Lorem ipsum dolor sit amet'), |
| LOW | docs/advanced_topics/testing.md | 161 | ('text', 'Lorem ipsum dolor sit amet'), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | wagtail/admin/views/generic/preview.py | 214 | # make sure to update the docs for `Block.get_preview_context`. |