MCPcopy Create free account

hub / github.com/WesternFriend/westernfriend.org / functions

Functions616 in github.com/WesternFriend/westernfriend.org

↓ 42 callersMethodsave
(self)
cart/cart.py:41
↓ 38 callersMethodadd
Add a product to the cart or update its quantity.
cart/cart.py:24
↓ 25 callersMethodget_context
Override get_context to prefetch archive author relationships. Prevents N+1 queries when template loops through article.archive_authors.all
magazine/models.py:654
↓ 21 callersMethodget_context
(self, request, *args, **kwargs)
facets/models.py:78
↓ 21 callersMethodsave
Override save to send email notification when order is marked as paid. Sends notification only once (when paid=True and notification
orders/models.py:202
↓ 15 callersFunctionget_paginated_items
Paginate items and return a page of items.
pagination/helpers.py:15
↓ 9 callersMethodcreate_user
Create and save a User with the given email and password.
accounts/models.py:17
↓ 8 callersMethod_call_get_success_url
(self, next_value: str, *, secure: bool = False)
accounts/tests.py:101
↓ 8 callersMethod_index_and_search
Helper to index a page and search for it. The database search backend works synchronously, so the page is immediately searchable afte
search/tests.py:465
↓ 8 callersMethodget_context
(self, request, *args, **kwargs)
contact/models.py:706
↓ 7 callersMethodupdate_for_contact
Update publication statistics for a given contact.
contact/models.py:70
↓ 6 callersMethod_make_page
(self, model_name, is_root=False)
common/tests.py:159
↓ 6 callersMethod_render
(self, page)
common/tests.py:309
↓ 6 callersMethodclear
(self)
cart/cart.py:83
↓ 6 callersFunctionexclude_from_breadcrumbs
Check if a page's model should be excluded from breadcrumbs. Returns True if the page should be excluded, False otherwise.
common/templatetags/common_tags.py:57
↓ 6 callersMethodget_cart_products
(self)
cart/cart.py:56
↓ 6 callersMethodget_subtotal_cost
(self)
cart/cart.py:71
↓ 6 callersMethodprefetch_parent_issues
Bulk-annotate a list of MagazineArticle instances with their parent MagazineIssue, setting ``_parent_page`` on each. Prefer this over
magazine/models.py:368
↓ 6 callersMethodrender_basic
(self, value, context=None)
blocks/blocks.py:105
↓ 5 callersFunctionfilter_querystring_facets
Filter querystring facets to only include those that are valid.
library/helpers.py:21
↓ 5 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
subscription/models.py:124
↓ 5 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
events/models.py:130
↓ 5 callersFunctionget_default_site
Get the default Wagtail site, falling back to the first site if needed. This function provides a consistent way to retrieve a site for conte
core/utils.py:15
↓ 5 callersFunctionsend_order_paid_notification
Send email notification when a bookstore order is successfully paid. Args: order: The Order instance that was paid Returns:
orders/notifications.py:12
↓ 5 callersFunctionvisible_breadcrumb_ancestors
Return only the ancestors that appear as visible breadcrumb items. Filters out root pages and pages excluded by exclude_from_breadcrumbs, ret
common/templatetags/common_tags.py:44
↓ 4 callersMethod_patch_locale_manager
Cache LocaleManager.get_for_language for the duration of each request. Problem ------- With WAGTAIL_I18N_ENABLED=True, Wagtai
common/apps.py:22
↓ 4 callersFunctionadd_class
Add CSS class to form field This template filter adds CSS classes to form fields, making it easy to apply tailwind/daisyUI styling to Django
common/templatetags/common_form_tags.py:7
↓ 4 callersFunctionconstruct_paypal_auth_headers
()
paypal/auth.py:29
↓ 4 callersFunctioncreate_querystring_from_facets
Create a querystring from facets.
library/helpers.py:35
↓ 4 callersFunctionget_library_items_for_facet
Helper to get library items filtered by facet with consistent ordering. Args: facet_instance: The facet page instance (Audience, Genre, M
facets/models.py:4
↓ 4 callersFunctionspecific_pages
Return ancestors as their specific page types, fetched in bulk. Replaces per-item `ancestor.specific` calls in templates (which issue one que
common/templatetags/common_tags.py:31
↓ 4 callersFunctionsubscription_is_active
Check the status of a PayPal subscription.
paypal/subscriptions.py:33
↓ 3 callersFunctioncapture_order
( *, paypal_order_id: str, )
paypal/orders.py:43
↓ 3 callersFunctioncreate_order
Create a PayPal order.
paypal/orders.py:11
↓ 3 callersFunctionget_auth_token
Get an auth token from PayPal.
paypal/auth.py:7
↓ 3 callersMethodget_context
Override get_context to prefetch author and topic relationships. Prevents N+1 queries when template loops through authors and topics
library/models.py:93
↓ 3 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
store/models.py:74
↓ 3 callersMethodget_filtered_memorials
( self, query: dict, )
memorials/models.py:79
↓ 3 callersMethodget_shipping_cost
(self)
cart/cart.py:78
↓ 3 callersMethodget_sitemap_urls
(self, changefreq=None, priority=None)
magazine/models.py:212
↓ 3 callersFunctionget_subscription
( *, paypal_subscription_id: str, )
paypal/subscriptions.py:13
↓ 3 callersMethodhref
Construct a URL with anchor if exists, otherwise use URL.
navigation/blocks.py:6
↓ 3 callersFunctionmodel_name
Return the model name of the given object.
common/templatetags/common_tags.py:7
↓ 3 callersFunctionscaffold_product_index_page
()
cart/tests.py:17
↓ 3 callersMethodsubmenu_id
Generate a unique ID for the submenu based on the title. This is used for accessibility purposes to link the summary and menu elements.
navigation/blocks.py:72
↓ 2 callersFunctioncreate_cart_order_items
Create OrderItems from Cart items.
orders/views.py:10
↓ 2 callersMethodcreate_superuser
Create and save a superuser with the given email and password.
accounts/models.py:33
↓ 2 callersFunctionget_book_shipping_cost
Calculate shipping costs for books in a cart/order. The shipping rules are flat rate for each book, with discounts offered for ordering more
shipping/calculator.py:4
↓ 2 callersMethodget_context
(self, request: HttpRequest, *args, **kwargs)
wf_pages/models.py:24
↓ 2 callersMethodget_cost
Return the total cost for this order item.
orders/models.py:259
↓ 2 callersMethodget_json_ld
(self)
contact/models.py:594
↓ 2 callersMethodget_queryset
(self, request)
contact/views.py:54
↓ 2 callersMethodget_queryset
Optimize related fetches for listings.
news/models.py:163
↓ 2 callersMethodget_success_url
(self)
accounts/views.py:49
↓ 2 callersMethodhref
Construct a URL with anchor if exists, otherwise use URL.
navigation/blocks.py:37
↓ 2 callersMethodremove
Remove a product from the cart.
cart/cart.py:47
↓ 2 callersMethodserve
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
subscription/models.py:136
↓ 2 callersMethodsetUp
(self)
orders/tests.py:95
↓ 2 callersMethodtearDown
(self)
subscription/tests.py:43
↓ 1 callersMethod_add_sentry_context
Add Sentry transaction context for debugging/monitoring. Note: optimization_query_count is only meaningful in development/staging (DEBUG=True
contact/models.py:448
↓ 1 callersMethod_build_prefetch_objects
Build list of Prefetch objects for all related content. Returns: List of Prefetch objects for optimized queryset loading.
contact/models.py:321
↓ 1 callersMethod_cache_article_parents
Bulk-fetch and cache parent pages for articles. This prevents N+1 queries when templates call {% pageurl issue %}.
contact/models.py:405
↓ 1 callersFunction_get_or_create_navigation_menu_setting
()
cli/management/commands/scaffold_initial_content.py:446
↓ 1 callersMethodautocomplete_label
(self)
magazine/models.py:288
↓ 1 callersFunctioncart_detail
( request: HttpRequest, )
cart/views.py:52
↓ 1 callersFunctioncleanForSlug
(text)
contact/static/js/contact/person_url_slug.js:55
↓ 1 callersMethodfull_name
(self)
memorials/models.py:50
↓ 1 callersMethodget_context
(self, request)
documents/models.py:32
↓ 1 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
memorials/models.py:94
↓ 1 callersMethodget_context
(self, request: HttpRequest, *args: tuple, **kwargs: dict)
home/models.py:39
↓ 1 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
magazine/models.py:295
↓ 1 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
community/models.py:131
↓ 1 callersMethodget_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
news/models.py:36
↓ 1 callersMethodget_filtered_archive_issues
( self, query: dict[str, str], )
magazine/models.py:701
↓ 1 callersFunctionget_or_create_site_root_page
()
core/test_utils.py:4
↓ 1 callersFunctionget_or_create_site_root_page
()
cli/management/commands/scaffold_initial_content.py:41
↓ 1 callersMethodget_publication_years
(self)
magazine/models.py:696
↓ 1 callersMethodget_queryset
TODO: Prefetch related articles for performance.
magazine/models.py:144
↓ 1 callersMethodget_queryset
Return a list of all the pages tagged with the given tag. The combined list is sorted alphabetically by title.
tags/views.py:19
↓ 1 callersMethodget_total_cost
(self)
cart/cart.py:62
↓ 1 callersMethodget_total_cost
Return the sum of all order items' costs, plus shipping cost.
orders/models.py:185
↓ 1 callersMethodget_total_items_cost
Return the sum of all order items' costs.
orders/models.py:175
↓ 1 callersFunctionrun_command
(command: str)
develop.py:53
↓ 1 callersFunctionrun_commands
(commands: list[str])
develop.py:58
↓ 1 callersMethodsave
( self, *args: Any, **kwargs: Any, )
contact/models.py:574
↓ 1 callersMethodtearDown
(self)
cart/tests.py:172
Method__init__
(self, required=True, help_text=None, **kwargs)
blocks/blocks.py:182
Method__init__
Initialize the cart.
cart/cart.py:12
Method__init__
( self, *args: Any, **kwargs: Any, )
orders/forms.py:8
Method__iter__
Get cart products from the database.
cart/cart.py:91
Method__len__
Count all items in the cart.
cart/cart.py:107
Method__str__
Return a string representation of the address.
addresses/models.py:83
Method__str__
(self)
contact/models.py:66
Method__str__
(self)
subscription/models.py:61
Method__str__
(self)
magazine/models.py:292
Method__str__
(self)
orders/models.py:172
Method__str__
(self)
orders/models.py:256
Method__str__
(self)
news/models.py:191
Method_cached
(self, language_code)
common/apps.py:53
Method_clear_cache
(**kwargs)
common/apps.py:67
next →1–100 of 616, ranked by callers