Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WesternFriend/westernfriend.org
/ functions
Functions
616 in github.com/WesternFriend/westernfriend.org
⨍
Functions
616
◇
Types & classes
736
↳
Endpoints
26
↓ 42 callers
Method
save
(self)
cart/cart.py:41
↓ 38 callers
Method
add
Add a product to the cart or update its quantity.
cart/cart.py:24
↓ 25 callers
Method
get_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 callers
Method
get_context
(self, request, *args, **kwargs)
facets/models.py:78
↓ 21 callers
Method
save
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 callers
Function
get_paginated_items
Paginate items and return a page of items.
pagination/helpers.py:15
↓ 9 callers
Method
create_user
Create and save a User with the given email and password.
accounts/models.py:17
↓ 8 callers
Method
_call_get_success_url
(self, next_value: str, *, secure: bool = False)
accounts/tests.py:101
↓ 8 callers
Method
_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 callers
Method
get_context
(self, request, *args, **kwargs)
contact/models.py:706
↓ 7 callers
Method
update_for_contact
Update publication statistics for a given contact.
contact/models.py:70
↓ 6 callers
Method
_make_page
(self, model_name, is_root=False)
common/tests.py:159
↓ 6 callers
Method
_render
(self, page)
common/tests.py:309
↓ 6 callers
Method
clear
(self)
cart/cart.py:83
↓ 6 callers
Function
exclude_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 callers
Method
get_cart_products
(self)
cart/cart.py:56
↓ 6 callers
Method
get_subtotal_cost
(self)
cart/cart.py:71
↓ 6 callers
Method
prefetch_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 callers
Method
render_basic
(self, value, context=None)
blocks/blocks.py:105
↓ 5 callers
Function
filter_querystring_facets
Filter querystring facets to only include those that are valid.
library/helpers.py:21
↓ 5 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
subscription/models.py:124
↓ 5 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
events/models.py:130
↓ 5 callers
Function
get_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 callers
Function
send_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 callers
Function
visible_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 callers
Method
_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 callers
Function
add_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 callers
Function
construct_paypal_auth_headers
()
paypal/auth.py:29
↓ 4 callers
Function
create_querystring_from_facets
Create a querystring from facets.
library/helpers.py:35
↓ 4 callers
Function
get_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 callers
Function
specific_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 callers
Function
subscription_is_active
Check the status of a PayPal subscription.
paypal/subscriptions.py:33
↓ 3 callers
Function
capture_order
( *, paypal_order_id: str, )
paypal/orders.py:43
↓ 3 callers
Function
create_order
Create a PayPal order.
paypal/orders.py:11
↓ 3 callers
Function
get_auth_token
Get an auth token from PayPal.
paypal/auth.py:7
↓ 3 callers
Method
get_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 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
store/models.py:74
↓ 3 callers
Method
get_filtered_memorials
( self, query: dict, )
memorials/models.py:79
↓ 3 callers
Method
get_shipping_cost
(self)
cart/cart.py:78
↓ 3 callers
Method
get_sitemap_urls
(self, changefreq=None, priority=None)
magazine/models.py:212
↓ 3 callers
Function
get_subscription
( *, paypal_subscription_id: str, )
paypal/subscriptions.py:13
↓ 3 callers
Method
href
Construct a URL with anchor if exists, otherwise use URL.
navigation/blocks.py:6
↓ 3 callers
Function
model_name
Return the model name of the given object.
common/templatetags/common_tags.py:7
↓ 3 callers
Function
scaffold_product_index_page
()
cart/tests.py:17
↓ 3 callers
Method
submenu_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 callers
Function
create_cart_order_items
Create OrderItems from Cart items.
orders/views.py:10
↓ 2 callers
Method
create_superuser
Create and save a superuser with the given email and password.
accounts/models.py:33
↓ 2 callers
Function
get_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 callers
Method
get_context
(self, request: HttpRequest, *args, **kwargs)
wf_pages/models.py:24
↓ 2 callers
Method
get_cost
Return the total cost for this order item.
orders/models.py:259
↓ 2 callers
Method
get_json_ld
(self)
contact/models.py:594
↓ 2 callers
Method
get_queryset
(self, request)
contact/views.py:54
↓ 2 callers
Method
get_queryset
Optimize related fetches for listings.
news/models.py:163
↓ 2 callers
Method
get_success_url
(self)
accounts/views.py:49
↓ 2 callers
Method
href
Construct a URL with anchor if exists, otherwise use URL.
navigation/blocks.py:37
↓ 2 callers
Method
remove
Remove a product from the cart.
cart/cart.py:47
↓ 2 callers
Method
serve
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
subscription/models.py:136
↓ 2 callers
Method
setUp
(self)
orders/tests.py:95
↓ 2 callers
Method
tearDown
(self)
subscription/tests.py:43
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Function
_get_or_create_navigation_menu_setting
()
cli/management/commands/scaffold_initial_content.py:446
↓ 1 callers
Method
autocomplete_label
(self)
magazine/models.py:288
↓ 1 callers
Function
cart_detail
( request: HttpRequest, )
cart/views.py:52
↓ 1 callers
Function
cleanForSlug
(text)
contact/static/js/contact/person_url_slug.js:55
↓ 1 callers
Method
full_name
(self)
memorials/models.py:50
↓ 1 callers
Method
get_context
(self, request)
documents/models.py:32
↓ 1 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
memorials/models.py:94
↓ 1 callers
Method
get_context
(self, request: HttpRequest, *args: tuple, **kwargs: dict)
home/models.py:39
↓ 1 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
magazine/models.py:295
↓ 1 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
community/models.py:131
↓ 1 callers
Method
get_context
( self, request: HttpRequest, *args: tuple, **kwargs: dict, )
news/models.py:36
↓ 1 callers
Method
get_filtered_archive_issues
( self, query: dict[str, str], )
magazine/models.py:701
↓ 1 callers
Function
get_or_create_site_root_page
()
core/test_utils.py:4
↓ 1 callers
Function
get_or_create_site_root_page
()
cli/management/commands/scaffold_initial_content.py:41
↓ 1 callers
Method
get_publication_years
(self)
magazine/models.py:696
↓ 1 callers
Method
get_queryset
TODO: Prefetch related articles for performance.
magazine/models.py:144
↓ 1 callers
Method
get_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 callers
Method
get_total_cost
(self)
cart/cart.py:62
↓ 1 callers
Method
get_total_cost
Return the sum of all order items' costs, plus shipping cost.
orders/models.py:185
↓ 1 callers
Method
get_total_items_cost
Return the sum of all order items' costs.
orders/models.py:175
↓ 1 callers
Function
run_command
(command: str)
develop.py:53
↓ 1 callers
Function
run_commands
(commands: list[str])
develop.py:58
↓ 1 callers
Method
save
( self, *args: Any, **kwargs: Any, )
contact/models.py:574
↓ 1 callers
Method
tearDown
(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